Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -1198,8 +1198,8 @@ static int load_input_picture(MpegEncContext *s, const AVFrame *pic_arg) · 1197 unmodified lines | |||
| 1198 | ptrdiff_t dst_stride = i ? s->uvlinesize : s->linesize; | 1198 | ptrdiff_t dst_stride = i ? s->uvlinesize : s->linesize; |
| 1199 | int h_shift = i ? s->chroma_x_shift : 0; | 1199 | int h_shift = i ? s->chroma_x_shift : 0; |
| 1200 | int v_shift = i ? s->chroma_y_shift : 0; | 1200 | int v_shift = i ? s->chroma_y_shift : 0; |
| 1201 | int w = s->width >> h_shift; | 1201 | int w = AV_CEIL_RSHIFT(s->width , h_shift); |
| 1202 | int h = s->height >> v_shift; | 1202 | int h = AV_CEIL_RSHIFT(s->height, v_shift); |
| 1203 | const uint8_t *src = pic_arg->data[i]; | 1203 | const uint8_t *src = pic_arg->data[i]; |
| 1204 | uint8_t *dst = pic->f->data[i]; | 1204 | uint8_t *dst = pic->f->data[i]; |
| 1205 | int vpad = 16; | 1205 | int vpad = 16; |