Commit 7d5501be authored by Jan Sebechlebsky's avatar Jan Sebechlebsky Committed by Michael Niedermayer

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: 's avatarJan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent ceab04fb
...@@ -172,7 +172,7 @@ int av_bsf_init(AVBSFContext *ctx) ...@@ -172,7 +172,7 @@ int av_bsf_init(AVBSFContext *ctx)
int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt) int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt)
{ {
if (!pkt || !pkt->data) { if (!pkt) {
ctx->internal->eof = 1; ctx->internal->eof = 1;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment