aboutsummaryrefslogtreecommitdiff
path: root/gst-libs/ext/libav/libavcodec/iff.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/ext/libav/libavcodec/iff.c')
-rw-r--r--gst-libs/ext/libav/libavcodec/iff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/ext/libav/libavcodec/iff.c b/gst-libs/ext/libav/libavcodec/iff.c
index 99da7b5..b7a7bb3 100644
--- a/gst-libs/ext/libav/libavcodec/iff.c
+++ b/gst-libs/ext/libav/libavcodec/iff.c
@@ -272,7 +272,7 @@ static int decode_frame_ilbm(AVCodecContext *avctx,
if (avctx->codec_tag == MKTAG('I','L','B','M')) { // interleaved
if (avctx->pix_fmt == AV_PIX_FMT_PAL8 || avctx->pix_fmt == AV_PIX_FMT_GRAY8) {
- for(y = 0; y < avctx->height; y++ ) {
+ for (y = 0; y < avctx->height && buf < buf_end; y++ ) {
uint8_t *row = &s->frame.data[0][ y*s->frame.linesize[0] ];
memset(row, 0, avctx->width);
for (plane = 0; plane < avctx->bits_per_coded_sample && buf < buf_end; plane++) {