diff options
author | Mats Peterson <matsp888@yahoo.com> | 2016-02-12 11:24:30 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-13 01:22:38 +0100 |
commit | 4e5db87174edc4f5f858bbc2b42d45cbe02ef379 (patch) | |
tree | 34273481bcbc90b115be04d110adfe13f28aaf4f | |
parent | efcea77996859411f785f4913d16292cd5a02638 (diff) | |
download | ffmpeg-4e5db87174edc4f5f858bbc2b42d45cbe02ef379.tar.gz |
avcodec/rawdec: Print stride and packet size at debug level
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/rawdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index 3cc6a15f7d..287be96955 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -199,6 +199,8 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame, else stride = avpkt->size / avctx->height; + av_log(avctx, AV_LOG_DEBUG, "PACKET SIZE: %d, STRIDE: %d\n", avpkt->size, stride); + if (stride == 0 || avpkt->size < stride * avctx->height) { av_log(avctx, AV_LOG_ERROR, "Packet too small (%d)\n", avpkt->size); return AVERROR_INVALIDDATA; |