mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
nuv: use FFALIGN.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
1484b5dec5
commit
785baa738a
@ -107,8 +107,8 @@ static void get_quant_quality(NuvContext *c, int quality) {
|
||||
|
||||
static int codec_reinit(AVCodecContext *avctx, int width, int height, int quality) {
|
||||
NuvContext *c = avctx->priv_data;
|
||||
width = (width + 1) & ~1;
|
||||
height = (height + 1) & ~1;
|
||||
width = FFALIGN(width, 2);
|
||||
height = FFALIGN(height, 2);
|
||||
if (quality >= 0)
|
||||
get_quant_quality(c, quality);
|
||||
if (width != c->width || height != c->height) {
|
||||
|
Loading…
Reference in New Issue
Block a user