>From 57ccd37a3f4234b01689a0516e15168b3a8e504e Mon Sep 17 00:00:00 2001
From: "Frederik M.J. Vestre" <freqmod@gmail.com>
Date: Sat, 28 Jan 2012 17:57:46 +0100
Subject: [PATCH] Fix assertion error when transcoding using filters which
 alter the video format, when resyncing the video

---
 modules/stream_out/transcode/video.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index f4d71fd..3ab9575 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -744,7 +744,7 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id,
                if( p_sys->i_threads >= 1 )
                {
                    /* We can't modify the picture, we need to duplicate it */
-                   p_pic2 = video_new_buffer_decoder( id->p_decoder );
+                   p_pic2 = picture_NewFromFormat( &p_pic->format );
                    if( p_pic2 != NULL )
                    {
                        picture_Copy( p_pic2, p_pic );
-- 
1.7.8.3


