> On Feb 6, 2025, at 05:20, James Almer <jamr...@gmail.com> wrote:
>
> On 2/5/2025 12:10 PM, Zhao Zhili wrote:
>> - skip_bits1(gb); /* direct_depenency_all_layers_flag */
>> - direct_dep_type = get_bits_long(gb, direct_dep_type_len);
>> - if (direct_dep_type > HEVC_DEP_TYPE_BOTH) {
>> - av_log(avctx, AV_LOG_WARNING, "Unsupported direct_dep_type: %d\n",
>> - direct_dep_type);
>> - return AVERROR_PATCHWELCOME;
>> + /* direct_depenency_all_layers_flag */
>> + if (get_bits1(gb)) {
>> + direct_dep_type = get_bits_long(gb, direct_dep_type_len);
>> + if (direct_dep_type > HEVC_DEP_TYPE_BOTH) {
>> + av_log(avctx, AV_LOG_WARNING, "Unsupported direct_dep_type:
>> %d\n",
>> + direct_dep_type);
>> + return AVERROR_PATCHWELCOME;
>> + }
>> }
>
> direct_dep_type is also coded if direct_depenency_all_layers_flag is false
> when (if I'm reading the spec right) vps->num_direct_ref_layers[1] is not 0.
Fixed in v4.
https://ffmpeg.org/pipermail/ffmpeg-devel/2025-February/339364.html
>
> _______________________________________________
> 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".