aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bsf.c
diff options
context:
space:
mode:
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>2016-07-26 12:40:07 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-13 10:59:50 +0200
commit7d5501be1e429f77aca26327fbc1ec623e6e21af (patch)
tree6f92d87aacfd7f0aaa4177cbb7f9aaef81445aff /libavcodec/bsf.c
parentceab04fb5db89052b3d8abcb57b137de24ed42b0 (diff)
downloadffmpeg-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.c2
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;
}