diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-01 14:02:08 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-07 11:45:30 +0200 |
commit | 22333a6b19f59ebc83933b910069d00c445d01ed (patch) | |
tree | 143d3dd337af034562802e529489d21964a27cd6 /libavfilter/vsrc_buffer.c | |
parent | 314374e57978bd215ae42d5444f0e76f2bebdc27 (diff) | |
download | ffmpeg-22333a6b19f59ebc83933b910069d00c445d01ed.tar.gz |
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/vsrc_buffer.c')
-rw-r--r-- | libavfilter/vsrc_buffer.c | 2 |
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; |