Commit f92e1af8 authored by Jan Sebechlebsky's avatar Jan Sebechlebsky Committed by James Almer

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: 's avatarJan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 844a115c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment