Skip to content

Commit 68b1053

Browse files
Chris HodgesePirat
authored andcommitted
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 <[email protected]>
1 parent 1722f08 commit 68b1053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libavformat/rtpdec_av1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static int av1_handle_packet(AVFormatContext *ctx, PayloadContext *data,
373373
}
374374
is_frag_cont = 0;
375375

376-
if (!rem_pkt_size && !num_obus && (num_obus != obu_cnt)) {
376+
if (!rem_pkt_size && num_obus && (num_obus != obu_cnt)) {
377377
av_log(ctx, AV_LOG_WARNING, "AV1 aggregation header indicated %u OBU elements, was %u\n",
378378
num_obus, obu_cnt);
379379
}

0 commit comments

Comments
 (0)