Commit be451d98 authored by stefano's avatar stefano

Make g729dec.c:decode_frame() return AVERROR_INVALIDDATA rather than

AVERROR_NOFMT in case of invalid / unknown packet size.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22624 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 75731b3e
......@@ -224,7 +224,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
av_log(avctx, AV_LOG_DEBUG, "Packet type: %s\n", "G.729D @ 6.4kbit/s");
} else {
av_log(avctx, AV_LOG_ERROR, "Packet size %d is unknown.\n", buf_size);
return (AVERROR_NOFMT);
return AVERROR_INVALIDDATA;
}
for (i=0; i < buf_size; i++)
......
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