aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>2017-04-22 21:56:56 -0300
committerJames Almer <jamrial@gmail.com>2017-04-22 22:32:24 -0300
commitf92e1af844208eb34fc0cdb2e38959c3a92165c9 (patch)
treeb40f6326e55291bf2019a41ec6b20390cd097a6f
parent844a115cd3cd829c894339133685b71e3201dc86 (diff)
downloadffmpeg-f92e1af844208eb34fc0cdb2e38959c3a92165c9.tar.gz
avcodec/bsf: Check for packet payload when setting BSF EOF flag.
Set BSF EOF flag only if pkt == NULL or both data and side data are not present in packet. Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/bsf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c
index 0f97c259cb..38b423101c 100644
--- a/libavcodec/bsf.c
+++ b/libavcodec/bsf.c
@@ -174,7 +174,7 @@ int av_bsf_init(AVBSFContext *ctx)
int av_bsf_send_packet(AVBSFContext *ctx, AVPacket *pkt)
{
- if (!pkt) {
+ if (!pkt || (!pkt->data && !pkt->side_data_elems)) {
ctx->internal->eof = 1;
return 0;
}