swri_resample_init: unsupported sample formats are an internal error.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Oct 2012 02:36:23 +0000 (04:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Oct 2012 02:36:23 +0000 (04:36 +0200)
This condition cannot happen.

Fixes CID733802
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/resample.c

index 5a82e73..bf412dd 100644 (file)
@@ -224,7 +224,7 @@ ResampleContext *swri_resample_init(ResampleContext *c, int out_rate, int in_rat
             break;
         default:
             av_log(NULL, AV_LOG_ERROR, "Unsupported sample format\n");
-            return NULL;
+            av_assert0(0);
         }
 
         c->phase_shift   = phase_shift;