avcodec/rawdec: Print stride and packet size at debug level
authorMats Peterson <matsp888@yahoo.com>
Fri, 12 Feb 2016 10:24:30 +0000 (11:24 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Feb 2016 00:22:38 +0000 (01:22 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/rawdec.c

index 3cc6a15..287be96 100644 (file)
@@ -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;