projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c02e46
)
Do not jump to "fail" without having a proper sws context in img_resample_ctx
author
Luca Abeni
<lucabe72@email.it>
Wed, 28 Feb 2007 15:07:35 +0000
(15:07 +0000)
committer
Luca Abeni
<lucabe72@email.it>
Wed, 28 Feb 2007 15:07:35 +0000
(15:07 +0000)
(avoid calling sws_freeContext(NULL))
Originally committed as revision 8162 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
ff33f85
..
cc8d285
100644
(file)
--- a/
ffmpeg.c
+++ b/
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),