From bfdca87ab55c7f69087d962dc47aa45c8c6436fb Mon Sep 17 00:00:00 2001 From: Jan Sebechlebsky Date: Tue, 26 Jul 2016 12:40:08 +0200 Subject: avcodec/bsf: Forbid packet without payload in av_bsf_send_packet Signed-off-by: Jan Sebechlebsky Signed-off-by: Michael Niedermayer --- libavcodec/avcodec.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/avcodec.h') diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 3b21537d49..6c2c4a7003 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -5900,7 +5900,8 @@ int av_bsf_init(AVBSFContext *ctx); * av_bsf_receive_packet() repeatedly until it returns AVERROR(EAGAIN) or * AVERROR_EOF. * - * @param pkt the packet to filter. The bitstream filter will take ownership of + * @param pkt the packet to filter. pkt must contain some payload (i.e data or + * side data must be present in pkt). The bitstream filter will take ownership of * the packet and reset the contents of pkt. pkt is not touched if an error occurs. * This parameter may be NULL, which signals the end of the stream (i.e. no more * packets will be sent). That will cause the filter to output any packets it -- cgit v1.2.3