On 1 Apr 2025, at 11:26, Chris Hodges wrote:

> 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.hod...@axis.com>
> ---
>  libavformat/rtpdec_av1.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/rtpdec_av1.c b/libavformat/rtpdec_av1.c
> index af3f9e0f09..7cfc83b03c 100644
> --- a/libavformat/rtpdec_av1.c
> +++ b/libavformat/rtpdec_av1.c
> @@ -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);
>          }
> -- 
> 2.39.5

Thanks, LGTM, will apply.

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to