From 6b347f519d5303c56fe21195aeb2a2eb91221061 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 6 Oct 2014 01:29:15 +0200 Subject: swresample/swresample: replace always true if() by av_assert0() Signed-off-by: Michael Niedermayer --- libswresample/swresample.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libswresample') diff --git a/libswresample/swresample.c b/libswresample/swresample.c index c325513efa..fc58d43664 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -668,8 +668,8 @@ int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_coun continue; } - if(s->drop_output || !out_arg) - return 0; + av_assert0(s->drop_output); + return 0; } if(!in_arg){ -- cgit v1.2.3