From 4a619fcae99c7fc8cae7070c7859243c40cdb4bc Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 28 Mar 2012 03:17:48 +0200 Subject: [PATCH] h263dec: Restore w/h values to a consistent state if a change is rejected. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer --- libavcodec/h263dec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index 9fd79b9e60..74d9050907 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -587,6 +587,8 @@ retry: if (HAVE_THREADS && (s->avctx->active_thread_type&FF_THREAD_FRAME)) { av_log_missing_feature(s->avctx, "Width/height/bit depth/chroma idc changing with threads is", 0); + s->width = avctx->coded_width; + s->height= avctx->coded_height; return -1; // width / height changed during parallelized decoding } -- 2.11.0