[Ffmpeg-cvslog] r8162 - trunk/ffmpeg.c

lucabe subversion
Wed Feb 28 16:07:36 CET 2007


Author: lucabe
Date: Wed Feb 28 16:07:35 2007
New Revision: 8162

Modified:
   trunk/ffmpeg.c

Log:
Do not jump to "fail" without having a proper sws context in img_resample_ctx
(avoid calling sws_freeContext(NULL))


Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Wed Feb 28 16:07:35 2007
@@ -1614,7 +1614,7 @@ static int av_encode(AVFormatContext **o
                     avcodec_get_frame_defaults(&ost->pict_tmp);
                     if( avpicture_alloc( (AVPicture*)&ost->pict_tmp, codec->pix_fmt,
                                          codec->width, codec->height ) )
-                        goto fail;
+                        exit(1);
 
                     ost->img_resample_ctx = sws_getContext(
                             icodec->width - (frame_leftBand + frame_rightBand),




More information about the ffmpeg-cvslog mailing list