comparison cavsdec.c @ 8792:b149d445bf4c libavcodec

time_code has 24 bits, not 16
author stefang
date Tue, 10 Feb 2009 16:36:01 +0000
parents 7798afcf0b24
children d46cde168c69
comparison
equal deleted inserted replaced
8791:7798afcf0b24 8792:b149d445bf4c
467 (!h->DPB[1].data[0] && h->pic_type == FF_B_TYPE)) 467 (!h->DPB[1].data[0] && h->pic_type == FF_B_TYPE))
468 return -1; 468 return -1;
469 } else { 469 } else {
470 h->pic_type = FF_I_TYPE; 470 h->pic_type = FF_I_TYPE;
471 if(get_bits1(&s->gb)) 471 if(get_bits1(&s->gb))
472 skip_bits(&s->gb,16);//time_code 472 skip_bits(&s->gb,24);//time_code
473 } 473 }
474 /* release last B frame */ 474 /* release last B frame */
475 if(h->picture.data[0]) 475 if(h->picture.data[0])
476 s->avctx->release_buffer(s->avctx, (AVFrame *)&h->picture); 476 s->avctx->release_buffer(s->avctx, (AVFrame *)&h->picture);
477 477