[FFmpeg-soc] [soc]: r5426 - libavfilter/vf_transpose.c

stefano subversion at mplayerhq.hu
Tue Nov 3 22:37:22 CET 2009


Author: stefano
Date: Tue Nov  3 22:37:22 2009
New Revision: 5426

Log:
Fix crash introduced in r5411.

The buffer requested by start_frame has to have the size of the output
link, which is different from the size of the input link.

Modified:
   libavfilter/vf_transpose.c

Modified: libavfilter/vf_transpose.c
==============================================================================
--- libavfilter/vf_transpose.c	Tue Oct 27 23:05:34 2009	(r5425)
+++ libavfilter/vf_transpose.c	Tue Nov  3 22:37:22 2009	(r5426)
@@ -93,7 +93,7 @@ static void start_frame(AVFilterLink *li
 {
     AVFilterLink *out = link->dst->outputs[0];
 
-    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;
 
     out->outpic->pixel_aspect.num = picref->pixel_aspect.den;


More information about the FFmpeg-soc mailing list