[FFmpeg-cvslog] r22624 - trunk/libavcodec/g729dec.c
stefano
subversion
Sun Mar 21 17:34:01 CET 2010
Author: stefano
Date: Sun Mar 21 17:34:01 2010
New Revision: 22624
Log:
Make g729dec.c:decode_frame() return AVERROR_INVALIDDATA rather than
AVERROR_NOFMT in case of invalid / unknown packet size.
Modified:
trunk/libavcodec/g729dec.c
Modified: trunk/libavcodec/g729dec.c
==============================================================================
--- trunk/libavcodec/g729dec.c Sun Mar 21 17:29:08 2010 (r22623)
+++ trunk/libavcodec/g729dec.c Sun Mar 21 17:34:01 2010 (r22624)
@@ -224,7 +224,7 @@ static int decode_frame(AVCodecContext *
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++)
More information about the ffmpeg-cvslog
mailing list