changeset 6563:100f8bc03e6b libavcodec

Decode stuff from extradata as well.
author michael
date Thu, 03 Apr 2008 18:28:16 +0000
parents 3f6b656f9f01
children cb31fe7bd914
files mpeg12.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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);
 }