[FFmpeg-cvslog] r21238 - trunk/libavfilter/defaults.c
stefano
subversion
Sat Jan 16 11:10:14 CET 2010
Author: stefano
Date: Sat Jan 16 11:10:14 2010
New Revision: 21238
Log:
Make avfilter_default_start_frame() request a buffer with the same
size of the output link of the destination filter, rather than of the
size of the input link.
In particular this fixes a crash in the rotate filter.
Modified:
trunk/libavfilter/defaults.c
Modified: trunk/libavfilter/defaults.c
==============================================================================
--- trunk/libavfilter/defaults.c Sat Jan 16 06:41:33 2010 (r21237)
+++ trunk/libavfilter/defaults.c Sat Jan 16 11:10:14 2010 (r21238)
@@ -72,7 +72,7 @@ void avfilter_default_start_frame(AVFilt
out = link->dst->outputs[0];
if(out) {
- out->outpic = avfilter_get_video_buffer(out, AV_PERM_WRITE, link->w, link->h);
+ out->outpic = avfilter_get_video_buffer(out, AV_PERM_WRITE, out->w, out->h);
out->outpic->pts = picref->pts;
avfilter_start_frame(out, avfilter_ref_pic(out->outpic, ~0));
}
More information about the ffmpeg-cvslog
mailing list