comparison mpeg12.c @ 6563:100f8bc03e6b libavcodec

Decode stuff from extradata as well.
author michael
date Thu, 03 Apr 2008 18:28:16 +0000
parents 3f6b656f9f01
children 5df0c730234d
comparison
equal deleted inserted replaced
6562:3f6b656f9f01 6563:100f8bc03e6b
2281 if(s->mpeg_enc_ctx_allocated==0 && avctx->codec_tag == ff_get_fourcc("VCR2")) 2281 if(s->mpeg_enc_ctx_allocated==0 && avctx->codec_tag == ff_get_fourcc("VCR2"))
2282 vcr2_init_sequence(avctx); 2282 vcr2_init_sequence(avctx);
2283 2283
2284 s->slice_count= 0; 2284 s->slice_count= 0;
2285 2285
2286 if(avctx->extradata && !avctx->frame_number)
2287 decode_chunks(avctx, picture, data_size, avctx->extradata, avctx->extradata_size);
2288
2286 return decode_chunks(avctx, picture, data_size, buf, buf_size); 2289 return decode_chunks(avctx, picture, data_size, buf, buf_size);
2287 } 2290 }
2288 2291
2289 static int decode_chunks(AVCodecContext *avctx, 2292 static int decode_chunks(AVCodecContext *avctx,
2290 AVFrame *picture, int *data_size, 2293 AVFrame *picture, int *data_size,