[FFmpeg-soc] [soc]: r2253 - eac3/ac3dec.c

jbr subversion at mplayerhq.hu
Fri May 30 01:30:50 CEST 2008


Author: jbr
Date: Fri May 30 01:30:50 2008
New Revision: 2253

Log:
10l: also need to log error message for invalid frame type

Modified:
   eac3/ac3dec.c

Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c	(original)
+++ eac3/ac3dec.c	Fri May 30 01:30:50 2008
@@ -1277,10 +1277,13 @@ static int ac3_decode_frame(AVCodecConte
 
     /* skip frame if CRC is ok. otherwise use error concealment. */
     /* TODO: add support for substreams and dependent frames */
-    if(err == AC3_PARSE_ERROR_FRAME_TYPE &&
-            (s->frame_type == EAC3_FRAME_TYPE_DEPENDENT || s->substreamid)) {
+    if(err == AC3_PARSE_ERROR_FRAME_TYPE) {
+        if(s->frame_type == EAC3_FRAME_TYPE_DEPENDENT || s->substreamid) {
         av_log(avctx, AV_LOG_ERROR, "unsupported frame type : skipping frame\n");
         return s->frame_size;
+        } else {
+            av_log(avctx, AV_LOG_ERROR, "invalid frame type\n");
+        }
     }
 
     /* if frame is ok, set audio parameters */



More information about the FFmpeg-soc mailing list