[FFmpeg-cvslog] r22819 - trunk/libavcodec/aacsbr.c

alexc subversion
Thu Apr 8 08:27:35 CEST 2010


Author: alexc
Date: Thu Apr  8 08:27:35 2010
New Revision: 22819

Log:
Print an error and skip PS when PS is found but explicitly found but
signaled to be absent.

Modified:
   trunk/libavcodec/aacsbr.c

Modified: trunk/libavcodec/aacsbr.c
==============================================================================
--- trunk/libavcodec/aacsbr.c	Thu Apr  8 08:04:41 2010	(r22818)
+++ trunk/libavcodec/aacsbr.c	Thu Apr  8 08:27:35 2010	(r22819)
@@ -897,6 +897,11 @@ static void read_sbr_extension(AACContex
 //TODO - implement ps_data for parametric stereo parsing
     switch (bs_extension_id) {
     case EXTENSION_ID_PS:
+        if (!ac->m4ac.ps) {
+            av_log(ac->avccontext, AV_LOG_ERROR, "Parametric Stereo signaled to be not-present but was found in the bitstream.\n");
+        skip_bits_long(gb, *num_bits_left); // bs_fill_bits
+        *num_bits_left = 0;
+        } else {
 #if 0
         *num_bits_left -= ff_ps_data(gb, ps);
 #else
@@ -904,6 +909,7 @@ static void read_sbr_extension(AACContex
         skip_bits_long(gb, *num_bits_left); // bs_fill_bits
         *num_bits_left = 0;
 #endif
+        }
         break;
     default:
         av_log_missing_feature(ac->avccontext, "Reserved SBR extensions are", 1);



More information about the ffmpeg-cvslog mailing list