diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-29 04:11:55 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-29 04:11:55 +0200 |
commit | 8c2045c9795d4705fcbac068012d90ceb782f61e (patch) | |
tree | c96390f6043dc7f95f3323c4b19090b71318a96f /libavfilter/avcodec.c | |
parent | d40ff29cacf9b8ffa1061392a0e9b3056c4882ea (diff) | |
download | ffmpeg-8c2045c9795d4705fcbac068012d90ceb782f61e.tar.gz |
avfilter: set w/h in avfilter_fill_frame_from_video_buffer_ref().
This fixes issues with AVFrame w/h being wrong in some cases
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avcodec.c')
-rw-r--r-- | libavfilter/avcodec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c index 455ef9283a..e4cae9b3a6 100644 --- a/libavfilter/avcodec.c +++ b/libavfilter/avcodec.c @@ -84,6 +84,8 @@ int avfilter_fill_frame_from_video_buffer_ref(AVFrame *frame, frame->key_frame = picref->video->key_frame; frame->pict_type = picref->video->pict_type; frame->sample_aspect_ratio = picref->video->sample_aspect_ratio; + frame->width = picref->video->w; + frame->height = picref->video->h; return 0; } |