[FFmpeg-cvslog] r11449 - trunk/ffmpeg.c

andoma subversion
Mon Jan 7 21:42:45 CET 2008


Author: andoma
Date: Mon Jan  7 21:42:45 2008
New Revision: 11449

Log:
Dont crash if resampling is requested but no audio packets are ever processed.



Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Mon Jan  7 21:42:45 2008
@@ -2057,7 +2057,7 @@ static int av_encode(AVFormatContext **o
                 av_free(ost->pict_tmp.data[0]);
                 if (ost->video_resample)
                     sws_freeContext(ost->img_resample_ctx);
-                if (ost->audio_resample)
+                if (ost->resample)
                     audio_resample_close(ost->resample);
                 av_free(ost);
             }




More information about the ffmpeg-cvslog mailing list