[FFmpeg-devel] [PATCH]Fail more gracefully for multichannel wavpack (in another container)

Carl Eugen Hoyos cehoyos
Fri Jan 7 13:47:22 CET 2011


Hi!

For current output, see issue 2504.

Please comment, Carl Eugen
-------------- next part --------------
Index: libavcodec/wavpack.c
===================================================================
--- libavcodec/wavpack.c	(revision 26251)
+++ libavcodec/wavpack.c	(working copy)
@@ -660,6 +660,10 @@
     WavpackContext *s = avctx->priv_data;
 
     s->avctx = avctx;
+    if (avctx->channels > 2) {
+        av_log(avctx, AV_LOG_ERROR, "Multichannel WavPack is not supported yet.\n");
+        return -1;
+    }
     s->stereo = (avctx->channels == 2);
     if(avctx->bits_per_coded_sample <= 16)
         avctx->sample_fmt = AV_SAMPLE_FMT_S16;



More information about the ffmpeg-devel mailing list