diff options
author | Jason Parker <jparker@digium.com> | 2008-05-22 17:10:53 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2008-05-22 17:10:53 +0000 |
commit | f7eb823a7a4551139abd677a2024705012d035c6 (patch) | |
tree | 9a258decae4f074f9e9a7bfe05180c78af99aca4 /formats/format_ogg_vorbis.c | |
parent | 5ceec8b05232152eb8c3a6dab74cc39baa7abe8e (diff) |
Fix a few places where frame data was used directly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats/format_ogg_vorbis.c')
-rw-r--r-- | formats/format_ogg_vorbis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/formats/format_ogg_vorbis.c b/formats/format_ogg_vorbis.c index 669e96a7d..de2a20c74 100644 --- a/formats/format_ogg_vorbis.c +++ b/formats/format_ogg_vorbis.c @@ -291,7 +291,7 @@ static int ogg_vorbis_write(struct ast_filestream *fs, struct ast_frame *f) if (!f->datalen) return -1; - data = (short *) f->data; + data = (short *) f->data.ptr; buffer = vorbis_analysis_buffer(&s->vd, f->samples); @@ -433,7 +433,7 @@ static struct ast_frame *ogg_vorbis_read(struct ast_filestream *fs, fs->fr.subclass = AST_FORMAT_SLINEAR; fs->fr.mallocd = 0; AST_FRAME_SET_BUFFER(&fs->fr, fs->buf, AST_FRIENDLY_OFFSET, BUF_SIZE); - buf = (short *)(fs->fr.data); /* SLIN data buffer */ + buf = (short *)(fs->fr.data.ptr); /* SLIN data buffer */ while (samples_out != SAMPLES_MAX) { float **pcm; |