[Ffmpeg-cvslog] r8162 - trunk/ffmpeg.c
Alex Beregszaszi
alex
Wed Feb 28 16:10:50 CET 2007
Hi,
> 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);
What about assert? And thus fix the real reason for this. Someone (you?)
said the reason is that width/height are set to zero.
--
Alex Beregszaszi
More information about the ffmpeg-cvslog
mailing list