Browse Source

Merge commit '3b69f245dbe6e2016659a45c4bfe284f6c5ac57e' into release/2.4

* commit '3b69f245dbe6e2016659a45c4bfe284f6c5ac57e':
  h264: Make sure reinit failures mark the context as not initialized

Conflicts:
	libavcodec/h264_slice.c

See: e8714f6f93
Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4.10
Michael Niedermayer 10 years ago
parent
commit
b50fa26885
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/h264_slice.c

+ 1
- 0
libavcodec/h264_slice.c View File

@@ -1475,6 +1475,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264Context *h0)


if (h->context_initialized && if (h->context_initialized &&
(must_reinit || needs_reinit)) { (must_reinit || needs_reinit)) {
h->context_initialized = 0;
if (h != h0) { if (h != h0) {
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 "


Loading…
Cancel
Save