[FFmpeg-cvslog] avcodec/bsf: Set EOF flag only in pkt == NULL

Jan Sebechlebsky git at videolan.org
Sat Aug 13 12:05:04 EEST 2016


ffmpeg | branch: master | Jan Sebechlebsky <sebechlebskyjan at gmail.com> | Tue Jul 26 12:40:07 2016 +0200| [7d5501be1e429f77aca26327fbc1ec623e6e21af] | committer: 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: Jan Sebechlebsky <sebechlebskyjan at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7d5501be1e429f77aca26327fbc1ec623e6e21af
---

 libavcodec/bsf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c
index 88b7f29..9b9ada7 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;
     }



More information about the ffmpeg-cvslog mailing list