mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/mpegvideo_enc: Use ptrdiff_t for stride
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e063c1d079
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
fc7d0393bb
commit
00a5834598
|
@ -1234,8 +1234,8 @@ static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg)
|
||||||
&v_chroma_shift);
|
&v_chroma_shift);
|
||||||
|
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
int src_stride = pic_arg->linesize[i];
|
ptrdiff_t src_stride = pic_arg->linesize[i];
|
||||||
int dst_stride = i ? s->uvlinesize : s->linesize;
|
ptrdiff_t dst_stride = i ? s->uvlinesize : s->linesize;
|
||||||
int h_shift = i ? h_chroma_shift : 0;
|
int h_shift = i ? h_chroma_shift : 0;
|
||||||
int v_shift = i ? v_chroma_shift : 0;
|
int v_shift = i ? v_chroma_shift : 0;
|
||||||
int w = s->width >> h_shift;
|
int w = s->width >> h_shift;
|
||||||
|
|
Loading…
Reference in New Issue