mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/avcodec: apply cosmetics style fixes
This commit is contained in:
parent
8d0e871f25
commit
dead4580e2
@ -46,10 +46,10 @@ int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src)
|
|||||||
dst->video->qp_table_linesize = 0;
|
dst->video->qp_table_linesize = 0;
|
||||||
if (src->qscale_table) {
|
if (src->qscale_table) {
|
||||||
int qsize = src->qstride ? src->qstride * ((src->height+15)/16) : (src->width+15)/16;
|
int qsize = src->qstride ? src->qstride * ((src->height+15)/16) : (src->width+15)/16;
|
||||||
dst->video->qp_table = av_malloc(qsize);
|
dst->video->qp_table = av_malloc(qsize);
|
||||||
if(!dst->video->qp_table)
|
if (!dst->video->qp_table)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
dst->video->qp_table_linesize = src->qstride;
|
dst->video->qp_table_linesize = src->qstride;
|
||||||
dst->video->qp_table_size = qsize;
|
dst->video->qp_table_size = qsize;
|
||||||
memcpy(dst->video->qp_table, src->qscale_table, qsize);
|
memcpy(dst->video->qp_table, src->qscale_table, qsize);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user