mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
sci-ml/torchvision: remove unused patch(es)
Signed-off-by: Michael Mair-Keimberger <mm1ke@gentoo.org>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
Reference in New Issue
Block a user