summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-01 14:02:08 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-07 11:45:30 +0200
commit22333a6b19f59ebc83933b910069d00c445d01ed (patch)
tree143d3dd337af034562802e529489d21964a27cd6 /libavfilter
parent314374e57978bd215ae42d5444f0e76f2bebdc27 (diff)
lavc: add width and height fields to AVFrame
width and height are per-frame properties, setting these values in AVFrame simplify the operation of extraction of that information, since avoids the need to check the codec/stream context.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vsrc_buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index ea63f7d0d2..84456718c4 100644
--- a/libavfilter/vsrc_buffer.c
+++ b/libavfilter/vsrc_buffer.c
@@ -102,6 +102,8 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame,
memcpy(c->frame.data , frame->data , sizeof(frame->data));
memcpy(c->frame.linesize, frame->linesize, sizeof(frame->linesize));
+ c->frame.width = frame->width;
+ c->frame.height = frame->height;
c->frame.interlaced_frame= frame->interlaced_frame;
c->frame.top_field_first = frame->top_field_first;
c->frame.key_frame = frame->key_frame;