summaryrefslogtreecommitdiff
path: root/libavcodec/fic.c
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-04-23 17:53:00 +0100
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-04-23 17:53:00 +0100
commitd7eb8f903338048c0b222d92357d67f5d3b54295 (patch)
tree63dff3d82ed03f3301ce4c2f85c93bf7581a8849 /libavcodec/fic.c
parent7596fc3d4b616318ac42a6cc011fe20f3ff7aaa9 (diff)
fic: Make warning message more accurate
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/fic.c')
-rw-r--r--libavcodec/fic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index 45f56b9558..8512ef3400 100644
--- a/libavcodec/fic.c
+++ b/libavcodec/fic.c
@@ -296,7 +296,9 @@ static int fic_decode_frame(AVCodecContext *avctx, void *data,
/* Skip cursor data. */
tsize = AV_RB24(src + 24);
if (tsize > avpkt->size - FIC_HEADER_SIZE) {
- av_log(avctx, AV_LOG_ERROR, "Invalid cursor data size.\n");
+ av_log(avctx, AV_LOG_ERROR,
+ "Packet is too small to contain cursor (%d vs %d bytes).\n",
+ tsize, avpkt->size - FIC_HEADER_SIZE);
return AVERROR_INVALIDDATA;
}