]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_slice.c
Merge commit '674b79148ff29f40cbd569f5585bf99c71204bf5'
[ffmpeg] / libavcodec / h264_slice.c
index 80a387d79cb3c9c4d27ab80f0f9183e88865523b..f12e4b75e8e68161cd3744b03d28345efcf4164a 100644 (file)
@@ -1334,6 +1334,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
 
     if (h->context_initialized &&
         (must_reinit || needs_reinit)) {
+        h->context_initialized = 0;
         if (sl != h->slice_ctx) {
             av_log(h->avctx, AV_LOG_ERROR,
                    "changing width %d -> %d / height %d -> %d on "