mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
lavc/speedhqenc: Require width to be a multiple of 16
This commit is contained in:
parent
017a18b026
commit
4037d5e103
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user