summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-11 04:36:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-11 04:36:23 +0200
commit7df9f595c9122f7c8aad39e0ad7d5b7bb1181e7e (patch)
treee6db15387e4b8eb975ee945a1ad310d0067e9a21
parente47ab0b2c93e040f51d23239f4080eb6222a94e8 (diff)
swri_resample_init: unsupported sample formats are an internal error.
This condition cannot happen. Fixes CID733802 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libswresample/resample.c2
1 files changed, 1 insertions, 1 deletions
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;