Commit e9d646f4 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '0181ae9a'

* commit '0181ae9a':
  h264: Make sure reinit failures mark the context as not initialized

Conflicts:
	libavcodec/h264_slice.c

See: e8714f6fMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 7d1cfbbc 0181ae9a
...@@ -1334,6 +1334,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl) ...@@ -1334,6 +1334,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
if (h->context_initialized && if (h->context_initialized &&
(must_reinit || needs_reinit)) { (must_reinit || needs_reinit)) {
h->context_initialized = 0;
if (sl != h->slice_ctx) { if (sl != h->slice_ctx) {
av_log(h->avctx, AV_LOG_ERROR, av_log(h->avctx, AV_LOG_ERROR,
"changing width %d -> %d / height %d -> %d on " "changing width %d -> %d / height %d -> %d on "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment