changeset 257:3b33a366e13b libavformat

send the chunk preamble bytes to the respective decoders; Id RoQ demuxer now works correctly
author tmmm
date Fri, 26 Sep 2003 00:10:21 +0000
parents 2efd6fe95fc6
children 59c2e84817a1
files idroq.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/idroq.c	Thu Sep 25 08:38:16 2003 +0000
+++ b/idroq.c	Fri Sep 26 00:10:21 2003 +0000
@@ -174,8 +174,6 @@
             st->codec.bits_per_sample;
         st->codec.block_align = st->codec.channels * st->codec.bits_per_sample;
     }
-printf (" video is %d x %d, audio is %d channels\n",
-  roq->width, roq->height, roq->audio_channels);
 
     return 0;
 }
@@ -261,7 +259,8 @@
                 roq->audio_frame_count += (chunk_size / roq->audio_channels);
             }
 
-            ret = get_buffer(pb, pkt->data, chunk_size);
+            ret = get_buffer(pb, pkt->data + RoQ_CHUNK_PREAMBLE_SIZE,
+                chunk_size);
             if (ret != chunk_size)
                 ret = -EIO;