Re: [FFmpeg-devel] [RFC] Bug in colorspace.c

2022-06-29 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Hendrik Leppkes > Sent: Wednesday, June 29, 2022 9:50 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [RFC] Bug in colorspace.c > > On Wed, Jun

Re: [FFmpeg-devel] [RFC] Bug in colorspace.c

2022-06-29 Thread Hendrik Leppkes
On Wed, Jun 29, 2022 at 6:34 AM Hendrik Leppkes wrote: > > On Tue, Jun 28, 2022 at 11:38 PM Soft Works wrote: > > > > Hi, > > > > in colorspace.c, there are two functions with contradicting behavior > > regarding reading/writing the max_luminance value from/to > > AVMasteringDisplayMetadata. The

Re: [FFmpeg-devel] [RFC] Bug in colorspace.c

2022-06-28 Thread Hendrik Leppkes
On Tue, Jun 28, 2022 at 11:38 PM Soft Works wrote: > > Hi, > > in colorspace.c, there are two functions with contradicting behavior > regarding reading/writing the max_luminance value from/to > AVMasteringDisplayMetadata. The code seems to be unchanged since > 3 years: > > > 1. ff_determine_signal

[FFmpeg-devel] [RFC] Bug in colorspace.c

2022-06-28 Thread Soft Works
Hi, in colorspace.c, there are two functions with contradicting behavior regarding reading/writing the max_luminance value from/to AVMasteringDisplayMetadata. The code seems to be unchanged since 3 years: 1. ff_determine_signal_peak() sd = av_frame_get_side_data(in, AV_FRAME_DATA_MASTERIN