From 7d5501be1e429f77aca26327fbc1ec623e6e21af Mon Sep 17 00:00:00 2001 From: Jan Sebechlebsky Date: Tue, 26 Jul 2016 12:40:07 +0200 Subject: [PATCH] avcodec/bsf: Set EOF flag only in pkt == NULL Set BSF EOF flag only if pkt == NULL in av_bsf_send_packet(). Signed-off-by: Jan Sebechlebsky Signed-off-by: Michael Niedermayer --- libavcodec/bsf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c index 88b7f29fe5..9b9ada796c 100644 --- a/libavcodec/bsf.c +++ b/libavcodec/bsf.c @@ -172,7 +172,7 @@ int av_bsf_init(AVBSFContext *ctx) int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt) { - if (!pkt || !pkt->data) { + if (!pkt) { ctx->internal->eof = 1; return 0; }