mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi: 10l fix () placement
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a33b4bc79c
commit
ca7be934d6
|
@ -42,7 +42,7 @@ void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr)
|
||||||
static void copy_video_props(AVFilterBufferRefVideoProps *dst, AVFilterBufferRefVideoProps *src) {
|
static void copy_video_props(AVFilterBufferRefVideoProps *dst, AVFilterBufferRefVideoProps *src) {
|
||||||
*dst = *src;
|
*dst = *src;
|
||||||
if (src->qp_table) {
|
if (src->qp_table) {
|
||||||
int qsize = src->qp_table_linesize ? (src->qp_table_linesize * (src->h+15)/16) : (src->w+15)/16;
|
int qsize = src->qp_table_linesize ? src->qp_table_linesize * ((src->h+15)/16) : (src->w+15)/16;
|
||||||
dst->qp_table = av_malloc(qsize);
|
dst->qp_table = av_malloc(qsize);
|
||||||
memcpy(dst->qp_table, src->qp_table, qsize);
|
memcpy(dst->qp_table, src->qp_table, qsize);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue