[FFmpeg-cvslog] h264: slice-mt: check master context for valid current_picture_ptr

Janne Grunau git at videolan.org
Thu Dec 6 05:00:46 CET 2012


ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Wed Dec  5 20:08:01 2012 +0100| [3ab5f7dc137438e281af19218871da71a52e21be] | committer: Michael Niedermayer

h264: slice-mt: check master context for valid current_picture_ptr

Fixes errors in slice based multithreading introduced in 0b300daad2f5.

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

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

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index a93d07e..41845ca 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2709,7 +2709,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
             s->picture_structure = last_pic_structure;
             s->dropable          = last_pic_dropable;
             return AVERROR_INVALIDDATA;
-        } else if (!s->current_picture_ptr) {
+        } else if (!s0->current_picture_ptr) {
             av_log(s->avctx, AV_LOG_ERROR,
                    "unset current_picture_ptr on %d. slice\n",
                    h0->current_slice + 1);



More information about the ffmpeg-cvslog mailing list