mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
844a115cd3
commit
f92e1af844
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user