summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-17 03:53:38 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-17 16:13:09 +0100
commitc351126ee93825c3ceaf11ec4be79f8a906b8fab (patch)
tree856c5646416529e68543017696522efa2bf2e3c0
parent4dc58803813f6008085a24f42084ecacf354341e (diff)
downloadffmpeg-streaming-c351126ee93825c3ceaf11ec4be79f8a906b8fab.zip
ffmpeg-streaming-c351126ee93825c3ceaf11ec4be79f8a906b8fab.tar.gz
avcodec/eatqi: print error on mb decode failure
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/eatqi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c
index d3b2a97..8fd5cdb 100644
--- a/libavcodec/eatqi.c
+++ b/libavcodec/eatqi.c
@@ -37,6 +37,7 @@
#include "mpeg12.h"
typedef struct TqiContext {
+ AVCodecContext *avctx;
GetBitContext gb;
BlockDSPContext bdsp;
BswapDSPContext bsdsp;
@@ -79,8 +80,11 @@ static int tqi_decode_mb(TqiContext *t, int16_t (*block)[64])
t->intra_matrix,
t->intra_scantable.permutated,
t->last_dc, block[n], n, 1);
- if (ret < 0)
+ if (ret < 0) {
+ av_log(t->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n",
+ t->mb_x, t->mb_y);
return -1;
+ }
}
return 0;
@@ -127,6 +131,8 @@ static int tqi_decode_frame(AVCodecContext *avctx,
AVFrame *frame = data;
int ret, w, h;
+ t->avctx = avctx;
+
w = AV_RL16(&buf[0]);
h = AV_RL16(&buf[2]);
tqi_calculate_qtable(t, buf[4]);
OpenPOWER on IntegriCloud