diff options
author | Mike Melanson <mike@multimedia.cx> | 2003-09-26 00:10:21 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2003-09-26 00:10:21 +0000 |
commit | d42f74b85e93690b332fdefe2a1625534cfe16fb (patch) | |
tree | 37d6e6262a82ec0114b9c414cde8bf01d4fcdc37 /libavformat/idroq.c | |
parent | 2ecad8bd45b50020f9de4baf841778fba48863cf (diff) | |
download | ffmpeg-d42f74b85e93690b332fdefe2a1625534cfe16fb.tar.gz |
send the chunk preamble bytes to the respective decoders; Id RoQ demuxer
now works correctly
Originally committed as revision 2303 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/idroq.c')
-rw-r--r-- | libavformat/idroq.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/idroq.c b/libavformat/idroq.c index 060db58116..c2af12f918 100644 --- a/libavformat/idroq.c +++ b/libavformat/idroq.c @@ -174,8 +174,6 @@ static int roq_read_header(AVFormatContext *s, 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 @@ static int roq_read_packet(AVFormatContext *s, 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; |