diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-06 01:29:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-06 01:29:15 +0200 |
commit | 6b347f519d5303c56fe21195aeb2a2eb91221061 (patch) | |
tree | effe30336b5f3cd3064009befde0fef9f6ae7ff9 | |
parent | f9fefa499f0af48f47ea73c8ce0b25df0976c315 (diff) | |
download | ffmpeg-6b347f519d5303c56fe21195aeb2a2eb91221061.tar.gz |
swresample/swresample: replace always true if() by av_assert0()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libswresample/swresample.c | 4 |
1 files changed, 2 insertions, 2 deletions
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){ |