From 7df9f595c9122f7c8aad39e0ad7d5b7bb1181e7e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 11 Oct 2012 04:36:23 +0200 Subject: [PATCH] swri_resample_init: unsupported sample formats are an internal error. This condition cannot happen. Fixes CID733802 Signed-off-by: Michael Niedermayer --- libswresample/resample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswresample/resample.c b/libswresample/resample.c index 5a82e73875..bf412dd268 100644 --- a/libswresample/resample.c +++ b/libswresample/resample.c @@ -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;