diff options
author | Jan Sebechlebsky <sebechlebskyjan@gmail.com> | 2016-07-26 12:40:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-13 10:59:50 +0200 |
commit | 7d5501be1e429f77aca26327fbc1ec623e6e21af (patch) | |
tree | 6f92d87aacfd7f0aaa4177cbb7f9aaef81445aff /libavcodec/bsf.c | |
parent | ceab04fb5db89052b3d8abcb57b137de24ed42b0 (diff) | |
download | ffmpeg-7d5501be1e429f77aca26327fbc1ec623e6e21af.tar.gz |
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>
Diffstat (limited to 'libavcodec/bsf.c')
-rw-r--r-- | libavcodec/bsf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |