diff 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
line wrap: on
line diff
--- a/mpeg12.c	Thu Apr 03 18:25:07 2008 +0000
+++ b/mpeg12.c	Thu Apr 03 18:28:16 2008 +0000
@@ -2283,6 +2283,9 @@
 
     s->slice_count= 0;
 
+    if(avctx->extradata && !avctx->frame_number)
+        decode_chunks(avctx, picture, data_size, avctx->extradata, avctx->extradata_size);
+
     return decode_chunks(avctx, picture, data_size, buf, buf_size);
 }