diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-08 20:37:24 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-08 20:54:15 +0200 |
commit | 47cd3c88c5f3180710494b775634398be1445fbf (patch) | |
tree | d2cf80fad09ff0bed0de398ad9976fcbab3d5e66 /libavformat | |
parent | 345158aea1bac6fc8521474ed0a1f9e6ce8898e8 (diff) | |
download | ffmpeg-47cd3c88c5f3180710494b775634398be1445fbf.tar.gz |
avcodec/bsf: Restrict ff_bsf_get_packet_ref() return values to <= 0
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: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat')
0 files changed, 0 insertions, 0 deletions