aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-03-31 16:04:44 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-03-31 16:04:44 +0000
commiteddc482dff253f7afe3f0d87eb929140d3019b71 (patch)
tree28519a874602e614a39089a922567ffaa4de4b1b
parent087fa475072e9148efbfa86289abdf87e54e45b2 (diff)
downloadffmpeg-eddc482dff253f7afe3f0d87eb929140d3019b71.tar.gz
print error message
Originally committed as revision 8569 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index f93b4c8eaa..c9bac5de60 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1610,9 +1610,10 @@ static int av_encode(AVFormatContext **output_files,
if (ost->video_resample) {
avcodec_get_frame_defaults(&ost->pict_tmp);
if( avpicture_alloc( (AVPicture*)&ost->pict_tmp, codec->pix_fmt,
- codec->width, codec->height ) )
+ codec->width, codec->height ) ) {
+ fprintf(stderr, "Cannot allocate temp picture, check pix fmt\n");
exit(1);
-
+ }
ost->img_resample_ctx = sws_getContext(
icodec->width - (frame_leftBand + frame_rightBand),
icodec->height - (frame_topBand + frame_bottomBand),