Browse Source

h263dec: Check for width/height changes on frame skips too.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
c90b8a7480
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h263dec.c

+ 1
- 1
libavcodec/h263dec.c View File

@@ -438,7 +438,7 @@ retry:
ret = ff_h263_decode_picture_header(s);
}

if (ret < 0) {
if (ret < 0 || ret==FRAME_SKIPPED) {
if ( s->width != avctx->coded_width
|| s->height != avctx->coded_height) {
av_log(s->avctx, AV_LOG_WARNING, "Reverting picture dimensions change due to header decoding failure\n");


Loading…
Cancel
Save