aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/g729dec.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-21 16:34:01 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-03-21 16:34:01 +0000
commite4445e9c788e15af50616a42106209a9dca60e96 (patch)
treefed44f2a295266c62af0d2f2b5464f07ddbf2051 /libavcodec/g729dec.c
parente99f8d32e25f2f9fa9f29be752e2bb2004ff294b (diff)
downloadffmpeg-e4445e9c788e15af50616a42106209a9dca60e96.tar.gz
Make g729dec.c:decode_frame() return AVERROR_INVALIDDATA rather than
AVERROR_NOFMT in case of invalid / unknown packet size. Originally committed as revision 22624 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/g729dec.c')
-rw-r--r--libavcodec/g729dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index c1cdb5dcc4..be243606cf 100644
--- a/libavcodec/g729dec.c
+++ b/libavcodec/g729dec.c
@@ -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++)