fixed build issues with FFMpeg AVCodec version >=59 changes (#636)

* fixed build issues with FFMpeg AVCodec version >=59 changes

* fixed mistake of pushing stashed change

---------

Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Bu işleme şunda yer alıyor:
Rajy RawtherveKiriti Gowda authored and GitHub committed 2025-08-28 09:28:12 -07:00
1 ebeveyn eeecc3e8c8
işleme 253e604c7b
2 files changed
+9 -1

No files matched your search

+5 -1
Dosyayı Görüntüle
@@ -387,7 +387,11 @@ rocDecStatus AvcodecVideoDecoder::NotifyNewSequence(AVFrame *p_frame) {
p_video_format->frame_rate.denominator = dec_context_->framerate.den;
p_video_format->bit_depth_luma_minus8 = BitDepthFromPixelFormat(dec_context_->pix_fmt) - 8;
p_video_format->bit_depth_chroma_minus8 = p_video_format->bit_depth_luma_minus8;
p_video_format->progressive_sequence = !p_frame->interlaced_frame;
#if USE_AVCODEC_GREATER_THAN_58_134
p_video_format->progressive_sequence = !(p_frame->flags & AV_FRAME_FLAG_INTERLACED);
#else
p_video_format->progressive_sequence = !!p_frame->interlaced_frame;;
#endif
//number of decode surfaces are internal and not exposed in avcodec based decoding. Setting some value for sanity
p_video_format->min_num_decode_surfaces = dec_frames_.size();
p_video_format->coded_width = p_frame->linesize[0];