You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
swr: fix segfault when 0 out size is used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -527,7 +527,7 @@ int swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_coun
|
|||||||
out_count= resample(s, preout, out_count, midbuf, in_count);
|
out_count= resample(s, preout, out_count, midbuf, in_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(preout != out){
|
if(preout != out && out_count){
|
||||||
//FIXME packed doesnt need more than 1 chan here!
|
//FIXME packed doesnt need more than 1 chan here!
|
||||||
swri_audio_convert(s->out_convert, out, preout, out_count);
|
swri_audio_convert(s->out_convert, out, preout, out_count);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user