[FFmpeg-devel] Re: [PATCH] avcodec/h2645_vui: Interpret a degenerate SAR as unspecified.

2025-11-04 Thread Giovanni Mascellani via ffmpeg-devel
Hi, Il 04/11/25 14:50, Zhao Zhili ha scritto: The specification says that if either the numerator or the denominator is zero then the SAR is to be intended unspecified. Internally ffmpeg represents an unspecified SAR as 0/1, while fractions with a zero denominator are not handled properly; Is

[FFmpeg-devel] [PATCH] avcodec/h2645_vui: Interpret a degenerate SAR as unspecified.

2025-11-04 Thread Giovanni Mascellani via ffmpeg-devel
The specification says that if either the numerator or the denominator is zero then the SAR is to be intended unspecified. Internally ffmpeg represents an unspecified SAR as 0/1, while fractions with a zero denominator are not handled properly; so we bridge the gap by replacing x/0 with 0/1. Sign