[FFmpeg-cvslog] ffmpeg: Dont crash on unconnected output pads before an error is printed

Michael Niedermayer git at videolan.org
Wed Oct 23 11:52:54 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 23 11:39:43 2013 +0200| [b36257921e5282c3069e1b5c6e7e758e566c7337] | committer: Michael Niedermayer

ffmpeg: Dont crash on unconnected output pads before an error is printed

Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b36257921e5282c3069e1b5c6e7e758e566c7337
---

 ffmpeg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 86b7162..3148267 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2108,7 +2108,7 @@ static int transcode_init(void)
         FilterGraph *fg = filtergraphs[i];
         for (j = 0; j < fg->nb_outputs; j++) {
             OutputFilter *ofilter = fg->outputs[j];
-            if (ofilter->ost->source_index >= 0)
+            if (!ofilter->ost || ofilter->ost->source_index >= 0)
                 continue;
             if (fg->nb_inputs != 1)
                 continue;



More information about the ffmpeg-cvslog mailing list