Showing the changes to libavfilter/buffer.c (1 of 1 file). Show all
Unified · Split
| @@ -42,7 +42,7 @@ void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr) · 41 unmodified lines | ||
| 42 | 42 | static void copy_video_props(AVFilterBufferRefVideoProps *dst, AVFilterBufferRefVideoProps *src) { |
| 43 | 43 | *dst = *src; |
| 44 | 44 | if (src->qp_table) { |
| 45 | − int qsize = src->qp_table_linesize ? (src->qp_table_linesize * (src->h+15)/16) : (src->w+15)/16; | |
| 45 | + int qsize = src->qp_table_linesize ? src->qp_table_linesize * ((src->h+15)/16) : (src->w+15)/16; | |
| 46 | 46 | dst->qp_table = av_malloc(qsize); |
| 47 | 47 | memcpy(dst->qp_table, src->qp_table, qsize); |
| 48 | 48 | } |