mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-05 14:26:17 +00:00
avcodec/mpegvideo_enc: Use ptrdiff_t for stride
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a066b8a809
commit
e063c1d079
@ -1193,8 +1193,8 @@ static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg)
|
||||
}
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
int src_stride = pic_arg->linesize[i];
|
||||
int dst_stride = i ? s->uvlinesize : s->linesize;
|
||||
ptrdiff_t src_stride = pic_arg->linesize[i];
|
||||
ptrdiff_t dst_stride = i ? s->uvlinesize : s->linesize;
|
||||
int h_shift = i ? s->chroma_x_shift : 0;
|
||||
int v_shift = i ? s->chroma_y_shift : 0;
|
||||
int w = s->width >> h_shift;
|
||||
|
Loading…
Reference in New Issue
Block a user