• Andreas Rheinhardt's avatar
    avcodec/bsf: Restrict ff_bsf_get_packet_ref() return values to <= 0 · 47cd3c88
    Andreas Rheinhardt authored
    Up until now the documentation of ff_bsf_get_packet_ref() allowed return
    values >= 0 in case of success, whereas av_bsf_receive_packet() only
    allows 0 on success. Given that for some bitstream filters the return
    value of ff_bsf_get_packet_ref() is forwarded to the caller of
    av_bsf_receive_packet() without any filtering, there would be a problem
    if ff_bsf_get_packet_ref() actually returned values > 0. But it
    currently doesn't and there is no reason why it should ever do so.
    Therefore this commit aligns the return values of these functions by
    restricting ff_bsf_get_packet_ref() to always returns 0 on success.
    Reviewed-by: 's avatarJames Almer <jamrial@gmail.com>
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    47cd3c88
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...