Message ID | 20240801233103.3451-1-gnattuoc@me.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avutil/hwcontext_videotoolbox: Correctly set trc | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
> On Aug 2, 2024, at 07:31, gnattu via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> wrote: > > The color trc key was assigned a color primaries value which causes > the resulting colorspace is always SDR. > > Fixes #10884. > > Signed-off-by: Gnattu OC <gnattuoc@me.com> > --- > libavutil/hwcontext_videotoolbox.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c > index 1794459943..80eaab64f0 100644 > --- a/libavutil/hwcontext_videotoolbox.c > +++ b/libavutil/hwcontext_videotoolbox.c > @@ -597,7 +597,7 @@ static int vt_pixbuf_set_colorspace(void *log_ctx, > colortrc = av_map_videotoolbox_color_trc_from_av(src->color_trc); > if (colortrc) > CVBufferSetAttachment(pixbuf, kCVImageBufferTransferFunctionKey, > - colorpri, kCVAttachmentMode_ShouldPropagate); > + colortrc, kCVAttachmentMode_ShouldPropagate); > else { > CVBufferRemoveAttachment(pixbuf, kCVImageBufferTransferFunctionKey); > if (src->color_trc != AVCOL_TRC_UNSPECIFIED) > -- > 2.39.3 (Apple Git-146) > Thanks for catching the typo, applied. > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c index 1794459943..80eaab64f0 100644 --- a/libavutil/hwcontext_videotoolbox.c +++ b/libavutil/hwcontext_videotoolbox.c @@ -597,7 +597,7 @@ static int vt_pixbuf_set_colorspace(void *log_ctx, colortrc = av_map_videotoolbox_color_trc_from_av(src->color_trc); if (colortrc) CVBufferSetAttachment(pixbuf, kCVImageBufferTransferFunctionKey, - colorpri, kCVAttachmentMode_ShouldPropagate); + colortrc, kCVAttachmentMode_ShouldPropagate); else { CVBufferRemoveAttachment(pixbuf, kCVImageBufferTransferFunctionKey); if (src->color_trc != AVCOL_TRC_UNSPECIFIED)
The color trc key was assigned a color primaries value which causes the resulting colorspace is always SDR. Fixes #10884. Signed-off-by: Gnattu OC <gnattuoc@me.com> --- libavutil/hwcontext_videotoolbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)