1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
Originally committed as revision 18688 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Benjamin Larsson 2009-04-25 17:35:21 +00:00
parent 0a704b5f21
commit da75426b26

View File

@ -1008,10 +1008,10 @@ static int cook_decode_frame(AVCodecContext *avctx,
/* estimate subpacket sizes */
q->subpacket[0].size = avctx->block_align;
for(i=1;i<q->num_subpackets;i++){
q->subpacket[i].size = 2 * buf[avctx->block_align - q->num_subpackets + i];
q->subpacket[0].size -= (q->subpacket[i].size + 1);
}
for(i=1;i<q->num_subpackets;i++){
q->subpacket[i].size = 2 * buf[avctx->block_align - q->num_subpackets + i];
q->subpacket[0].size -= (q->subpacket[i].size + 1);
}
/* decode supbackets */
*data_size = 0;