aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avcodec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-07 13:00:47 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-07 13:00:47 +0200
commit91141f2a13bcb36b849335d1d10c01b596d773bb (patch)
tree4ac4c40f907ffa60664c89c19a9d774cb1ae9f66 /libavfilter/avcodec.c
parent5891e454a667e42ef71a06bfd9661540ea3f3ebd (diff)
downloadffmpeg-91141f2a13bcb36b849335d1d10c01b596d773bb.tar.gz
lavfi: add qp_table_size
This avoid recalculating it and in case w/h changed avoids crashes. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avcodec.c')
-rw-r--r--libavfilter/avcodec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
index 95e30b3d16..51c15de40b 100644
--- a/libavfilter/avcodec.c
+++ b/libavfilter/avcodec.c
@@ -50,6 +50,7 @@ int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src)
if(!dst->video->qp_table)
return AVERROR(ENOMEM);
dst->video->qp_table_linesize = src->qstride;
+ dst->video->qp_table_size = qsize;
memcpy(dst->video->qp_table, src->qscale_table, qsize);
}
break;