Browse Source

Merge commit '5372cda67109848d22146289e401669266217e80'

* commit '5372cda67109848d22146289e401669266217e80':
  rv10: Validate the dimensions set from the container

This check could be replaced by a width==0||height==0

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 12 years ago
parent
commit
b4c88a4c4c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/rv10.c

+ 3
- 0
libavcodec/rv10.c View File

@@ -449,6 +449,9 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n");
return AVERROR_INVALIDDATA;
}
if ((ret = av_image_check_size(avctx->coded_width,
avctx->coded_height, 0, avctx)) < 0)
return ret;

ff_MPV_decode_defaults(s);



Loading…
Cancel
Save