Commit 4e5db871 authored by Mats Peterson's avatar Mats Peterson Committed by Michael Niedermayer

avcodec/rawdec: Print stride and packet size at debug level

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent efcea779
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment