* [FFmpeg-devel] [PATCH] lavc/speedhqenc: Require width to be a multiple of 16
@ 2024-05-14 11:05 Tomas Härdin
2024-05-30 14:23 ` Tomas Härdin
0 siblings, 1 reply; 3+ messages in thread
From: Tomas Härdin @ 2024-05-14 11:05 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
Stop gap solution. I don't know enough about mpegvideo_enc to provide a
proper implementation, nor do I have access to NDI hardware to feel
comfortable with it. This patch at least prevents us from outputting
files that we know are broken
/Tomas
[-- Attachment #2: 0001-lavc-speedhqenc-Require-width-to-be-a-multiple-of-16.patch --]
[-- Type: text/x-patch, Size: 875 bytes --]
From 9dd76f9ec153c3d10374a2a4a74348dc39458c07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= <git@haerdin.se>
Date: Tue, 14 May 2024 13:03:22 +0200
Subject: [PATCH] lavc/speedhqenc: Require width to be a multiple of 16
---
libavcodec/speedhqenc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libavcodec/speedhqenc.c b/libavcodec/speedhqenc.c
index 5b4ff4c139..39ed244bca 100644
--- a/libavcodec/speedhqenc.c
+++ b/libavcodec/speedhqenc.c
@@ -104,6 +104,12 @@ av_cold int ff_speedhq_encode_init(MpegEncContext *s)
return AVERROR(EINVAL);
}
+ // border is not implemented correctly at the moment, see ticket #10078
+ if (s->width % 16) {
+ av_log(s, AV_LOG_ERROR, "width must be a multiple of 16\n");
+ return AVERROR_PATCHWELCOME;
+ }
+
s->min_qcoeff = -2048;
s->max_qcoeff = 2047;
--
2.39.2
[-- Attachment #3: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] lavc/speedhqenc: Require width to be a multiple of 16
2024-05-14 11:05 [FFmpeg-devel] [PATCH] lavc/speedhqenc: Require width to be a multiple of 16 Tomas Härdin
@ 2024-05-30 14:23 ` Tomas Härdin
2024-06-03 12:54 ` Tomas Härdin
0 siblings, 1 reply; 3+ messages in thread
From: Tomas Härdin @ 2024-05-30 14:23 UTC (permalink / raw)
To: FFmpeg development discussions and patches
Ping
This stops us from producing broken output
/Tomas
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] lavc/speedhqenc: Require width to be a multiple of 16
2024-05-30 14:23 ` Tomas Härdin
@ 2024-06-03 12:54 ` Tomas Härdin
0 siblings, 0 replies; 3+ messages in thread
From: Tomas Härdin @ 2024-06-03 12:54 UTC (permalink / raw)
To: FFmpeg development discussions and patches
tor 2024-05-30 klockan 16:23 +0200 skrev Tomas Härdin:
> Ping
>
> This stops us from producing broken output
Pushed
/Tomass
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-03 12:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-14 11:05 [FFmpeg-devel] [PATCH] lavc/speedhqenc: Require width to be a multiple of 16 Tomas Härdin
2024-05-30 14:23 ` Tomas Härdin
2024-06-03 12:54 ` Tomas Härdin
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git