[FFmpeg-cvslog] indeo: Reject impossible FRAMETYPE_NULL
Luca Barbato
git at videolan.org
Tue Aug 27 18:38:47 CEST 2013
ffmpeg | branch: release/1.1 | Luca Barbato <lu_zero at gentoo.org> | Sun Jul 14 18:16:56 2013 +0200| [505415b98599777f8951d3d86821f542e661e581] | committer: Luca Barbato
indeo: Reject impossible FRAMETYPE_NULL
A frame marked FRAMETYPE_NULL cannot be scalable and requires a
previous frame successfully decoded.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
(cherry picked from commit 5b2a29552ca09edd4646b6aa1828b32912b7ab36)
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=505415b98599777f8951d3d86821f542e661e581
---
libavcodec/ivi_common.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c
index 36293a1..2a73754 100644
--- a/libavcodec/ivi_common.c
+++ b/libavcodec/ivi_common.c
@@ -953,6 +953,14 @@ int ff_ivi_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
}
}
}
+ } else {
+ if (ctx->is_scalable)
+ return AVERROR_INVALIDDATA;
+
+ for (p = 0; p < 3; p++) {
+ if (!ctx->planes[p].bands[0].buf)
+ return AVERROR_INVALIDDATA;
+ }
}
//STOP_TIMER("decode_planes"); }
More information about the ffmpeg-cvslog
mailing list