1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avformat: Fix AV1 RTP wrong log condition

Fixed warning about OBU count being wrong, which can only be
determined when the number of OBUs in the header is non-zero,
not the other way round.

Signed-off-by: Chris Hodges <chris.hodges@axis.com>
This commit is contained in:
Chris Hodges
2025-04-01 10:29:33 +02:00
committed by Marvin Scholz
parent 1722f08acf
commit 68b105341c

View File

@@ -373,7 +373,7 @@ static int av1_handle_packet(AVFormatContext *ctx, PayloadContext *data,
}
is_frag_cont = 0;
if (!rem_pkt_size && !num_obus && (num_obus != obu_cnt)) {
if (!rem_pkt_size && num_obus && (num_obus != obu_cnt)) {
av_log(ctx, AV_LOG_WARNING, "AV1 aggregation header indicated %u OBU elements, was %u\n",
num_obus, obu_cnt);
}