sci-ml/torchvision: remove unused patch(es)

Signed-off-by: Michael Mair-Keimberger <mm1ke@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger
2026-05-21 18:16:24 +02:00
parent 5d20f3efdf
commit 02105395ee
@@ -1,14 +0,0 @@
--- a/torchvision/csrc/io/decoder/video_stream.cpp 2025-11-09 08:27:33.348292544 +0100
+++ b/torchvision/csrc/io/decoder/video_stream.cpp 2025-11-09 08:37:41.401470709 +0100
@@ -122,7 +122,11 @@
void VideoStream::setHeader(DecoderHeader* header, bool flush) {
Stream::setHeader(header, flush);
if (!flush) { // no frames for video flush
+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58,7,100)
+ header->keyFrame = frame_->flags & AV_FRAME_FLAG_KEY;
+#else
header->keyFrame = frame_->key_frame;
+#endif
header->fps = av_q2d(av_guess_frame_rate(
inputCtx_, inputCtx_->streams[format_.stream], nullptr));
}