[PATCH 09/15] Make decode_frame() return AVERROR_INVALIDDATA rather than AVERROR_NOFMT in case of invalid / unknown packet size.
Stefano Sabatini
stefano.sabatini-lala
Wed Mar 17 00:34:39 CET 2010
---
libavcodec/g729dec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index c1cdb5d..be24360 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++)
--
1.6.6.1
--Pd0ReVV5GZGQvF3a--
More information about the ffmpeg-devel
mailing list