Browse Source

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 <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.2
Jan Sebechlebsky Michael Niedermayer 9 years ago
parent
commit
7d5501be1e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/bsf.c

+ 1
- 1
libavcodec/bsf.c View File

@@ -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;
}


Loading…
Cancel
Save