ffmpeg | branch: master | Mats Peterson <matsp...@yahoo.com> | Fri Feb 12 11:24:30 2016 +0100| [4e5db87174edc4f5f858bbc2b42d45cbe02ef379] | committer: Michael Niedermayer
avcodec/rawdec: Print stride and packet size at debug level Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e5db87174edc4f5f858bbc2b42d45cbe02ef379 --- libavcodec/rawdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index 3cc6a15..287be96 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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog