[FFmpeg-cvslog] r17198 - trunk/libavformat/adtsenc.c

alexc subversion
Fri Feb 13 04:51:16 CET 2009


Author: alexc
Date: Fri Feb 13 04:51:15 2009
New Revision: 17198

Log:
Report the illegal audio object type, not it offset by 1.

Modified:
   trunk/libavformat/adtsenc.c

Modified: trunk/libavformat/adtsenc.c
==============================================================================
--- trunk/libavformat/adtsenc.c	Fri Feb 13 01:57:22 2009	(r17197)
+++ trunk/libavformat/adtsenc.c	Fri Feb 13 04:51:15 2009	(r17198)
@@ -42,7 +42,7 @@ static int decode_extradata(AVFormatCont
     adts->channel_conf = get_bits(&gb, 4);
 
     if (adts->objecttype > 3) {
-        av_log(s, AV_LOG_ERROR, "MPEG-4 AOT %d is not allowed in ADTS\n", adts->objecttype);
+        av_log(s, AV_LOG_ERROR, "MPEG-4 AOT %d is not allowed in ADTS\n", adts->objecttype+1);
         return -1;
     }
     if (adts->sample_rate_index == 15) {




More information about the ffmpeg-cvslog mailing list