[FFmpeg-cvslog] avcodec/utils: check that extended data has been set correctly instead of forcing it in avcodec_decode_video2 ()

Michael Niedermayer git at videolan.org
Tue Dec 10 01:18:57 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 10 01:00:01 2013 +0100| [985c5f226af35fff00a86bc36cc8eaa8da3d23b0] | committer: Michael Niedermayer

avcodec/utils: check that extended data has been set correctly instead of forcing it in avcodec_decode_video2()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=985c5f226af35fff00a86bc36cc8eaa8da3d23b0
---

 libavcodec/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index ee873d7..dd3f112 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -2158,7 +2158,7 @@ fail:
 
     /* many decoders assign whole AVFrames, thus overwriting extended_data;
      * make sure it's set correctly */
-    picture->extended_data = picture->data;
+    av_assert0(!picture->extended_data || picture->extended_data == picture->data);
 
     return ret;
 }



More information about the ffmpeg-cvslog mailing list