> Am 28.11.2019 um 06:37 schrieb Sun, Xinpeng <xinpeng....@intel.com>:
> 
>>> 
>>> +    if (input_frame->color_trc != AVCOL_TRC_SMPTE2084) {
>>> +        av_log(avctx, AV_LOG_ERROR, "Only support HDR10 as input for vaapi 
>>> tone-mapping\n");
>>> +        return AVERROR(EINVAL);
>> 
>> Shouldn't this also accept unknown trc?
>> (With a warning)
> 
> Sorry if I misunderstand "unknown trc". Did you mean the trc undefined by 
> ffmpeg or the trc unsupported by the driver?

My question is:
If input_frame->color_trc is AVCOL_TRC_UNSPECIFIED, will the above fail? But 
shouldn’t the user be able to use the filter in this case?

Thank you for the explanations, Carl Eugen
_______________________________________________
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