[SCM] libav/experimental: skip unsupported postproc information

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:21:35 UTC 2013


The following commit has been merged in the experimental branch:
commit 15a8bef0b6a5f75189fde4db2bca0842a6de91dd
Author: Sascha Sommer <saschasommer at freenet.de>
Date:   Sat Jan 8 15:49:29 2011 +0000

    skip unsupported postproc information
    
    Originally committed as revision 26268 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index 0e5ad56..5f2375b 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -1290,9 +1290,10 @@ static int decode_frame(WMAProDecodeCtx *s)
 
     /** read postproc transform */
     if (s->num_channels > 1 && get_bits1(gb)) {
-        av_log_ask_for_sample(s->avctx, "Unsupported postproc transform found\n");
-        s->packet_loss = 1;
-        return 0;
+        if (get_bits1(gb)) {
+            for (i = 0; i < s->num_channels * s->num_channels; i++)
+                skip_bits(gb, 4);
+        }
     }
 
     /** read drc info */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list