fftools/ffmpeg_demux: properly unnitialize the side_data_prefer_packet AVBprint buffer

Fixes Coverity issue CID 1689616.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2026-03-18 13:29:23 -03:00
parent e22a1ed712
commit b50cbdc04f

View File

@@ -1630,10 +1630,9 @@ static int ist_add(const OptionsContext *o, Demuxer *d, AVStream *st, AVDictiona
av_bprintf(&bp, ",");
av_bprintf(&bp, "content_light_level");
}
if (bp.len) {
av_bprint_finalize(&bp, NULL);
if (bp.len)
av_dict_set(&ds->decoder_opts, "side_data_prefer_packet", bp.str, AV_DICT_APPEND);
}
av_bprint_finalize(&bp, NULL);
/* Attached pics are sparse, therefore we would not want to delay their decoding
* till EOF. */