[FFmpeg-cvslog] avfilter: set w/h in avfilter_fill_frame_from_video_buffer_ref().
Michael Niedermayer
git at videolan.org
Thu Mar 29 04:32:36 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 29 04:11:55 2012 +0200| [8c2045c9795d4705fcbac068012d90ceb782f61e] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c2045c9795d4705fcbac068012d90ceb782f61e
---
libavfilter/avcodec.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
index 455ef92..e4cae9b 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;
}
More information about the ffmpeg-cvslog
mailing list