Browse Source

h264: Make sure reinit failures mark the context as not initialized

Bug-Id: CVE-2015-3417
CC: libav-stable@libav.org
tags/n2.7
Luca Barbato 10 years ago
parent
commit
0181ae9af2
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/h264_slice.c

+ 1
- 0
libavcodec/h264_slice.c View File

@@ -1171,6 +1171,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
}

if (h->context_initialized && 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 "


Loading…
Cancel
Save