mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-14 03:11:25 +00:00
avcodec/mpegvideo_enc: Fix 1 line and one column images
Fixes: Ticket10952
Fixes: poc21ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 96449cfeae)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
3ca9febc6e
commit
7618da9b2d
1 changed files with 2 additions and 2 deletions
|
|
@ -1087,8 +1087,8 @@ static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg)
|
|||
ptrdiff_t dst_stride = i ? s->uvlinesize : s->linesize;
|
||||
int h_shift = i ? h_chroma_shift : 0;
|
||||
int v_shift = i ? v_chroma_shift : 0;
|
||||
int w = s->width >> h_shift;
|
||||
int h = s->height >> v_shift;
|
||||
int w = AV_CEIL_RSHIFT(s->width , h_shift);
|
||||
int h = AV_CEIL_RSHIFT(s->height, v_shift);
|
||||
uint8_t *src = pic_arg->data[i];
|
||||
uint8_t *dst = pic->f->data[i];
|
||||
int vpad = 16;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue