Skip to content
Snippets Groups Projects
Commit f92e1af8 authored by Jan Sebechlebsky's avatar Jan Sebechlebsky Committed by James Almer
Browse files

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: default avatarJan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: default avatarJames Almer <jamrial@gmail.com>
parent 844a115c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment