Remove redundant code

Originally committed as revision 18687 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Benjamin Larsson 16 years ago
parent 9189d7eba6
commit 0a704b5f21
  1. 2
      libavcodec/cook.c

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

Loading…
Cancel
Save