Commit 251f283b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'b1bb8fb8'

* commit 'b1bb8fb8':
  svq1dec: check that the reference frame has the same dimensions as the current one

Conflicts:
	libavcodec/svq1dec.c

See: 3b57bb47Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents f60ba6c5 b1bb8fb8
......@@ -689,7 +689,8 @@ static int svq1_decode_frame(AVCodecContext *avctx, void *data,
} else {
/* delta frame */
uint8_t *previous = s->prev->data[i];
if (!previous || s->prev->width != cur->width || s->prev->height != cur->height) {
if (!previous ||
s->prev->width != s->width || s->prev->height != s->height) {
av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
result = AVERROR_INVALIDDATA;
goto err;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment