]> git.sesse.net Git - ffmpeg/commit
avfilter/af_headphone: Check for the existence of samples
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 28 Aug 2020 08:37:46 +0000 (10:37 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 9 Sep 2020 11:45:39 +0000 (13:45 +0200)
commitdfd46e2d160afcb7e453d0e2394a6978cb447712
tree97430c80d0ed23e4bdd649e62c393117616d73be
parent709fca0a9415ea97cd1d49d67298b8c8728a7aec
avfilter/af_headphone: Check for the existence of samples

Not providing any samples makes no sense at all. And if no samples
were provided for one of the HRIR streams, one would either run into
an av_assert1 in ff_inlink_consume_samples() or into a segfault in
take_samples() in avfilter.c.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/af_headphone.c