mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-20 16:25:04 +02:00
Do not jump to "fail" without having a proper sws context in img_resample_ctx
(avoid calling sws_freeContext(NULL)) Originally committed as revision 8162 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4c02e46daf
commit
7a16861859
2
ffmpeg.c
2
ffmpeg.c
@ -1614,7 +1614,7 @@ static int av_encode(AVFormatContext **output_files,
|
||||
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),
|
||||
|
Loading…
Reference in New Issue
Block a user