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:
parent
1722f08acf
commit
68b105341c
1 changed files with 1 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ static int av1_handle_packet(AVFormatContext *ctx, PayloadContext *data,
|
||||||
}
|
}
|
||||||
is_frag_cont = 0;
|
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",
|
av_log(ctx, AV_LOG_WARNING, "AV1 aggregation header indicated %u OBU elements, was %u\n",
|
||||||
num_obus, obu_cnt);
|
num_obus, obu_cnt);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue