changeset 11525:892d04e7c4e5 libavcodec

Make g729dec.c:decode_frame() return AVERROR_INVALIDDATA rather than AVERROR_NOFMT in case of invalid / unknown packet size.
author stefano
date Sun, 21 Mar 2010 16:34:01 +0000
parents 06d8a281e045
children 75a2c166f11a
files g729dec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/g729dec.c	Sun Mar 21 16:29:08 2010 +0000
+++ b/g729dec.c	Sun Mar 21 16:34:01 2010 +0000
@@ -224,7 +224,7 @@
         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++)