diff options
author | Luca Abeni <lucabe72@email.it> | 2007-02-28 15:07:35 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2007-02-28 15:07:35 +0000 |
commit | 7a1686185971a5bcb556efbd6d6e632ebb655dfb (patch) | |
tree | e2f171bc595bb29c686e682c4b57d0690a86035a /ffmpeg.c | |
parent | 4c02e46daf43c133cf3cafe7daa8d3decaeb05d1 (diff) | |
download | ffmpeg-7a1686185971a5bcb556efbd6d6e632ebb655dfb.tar.gz |
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
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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), |