[Ffmpeg-cvslog] r8569 - trunk/ffmpeg.c
bcoudurier
subversion
Sat Mar 31 18:04:44 CEST 2007
Author: bcoudurier
Date: Sat Mar 31 18:04:44 2007
New Revision: 8569
Modified:
trunk/ffmpeg.c
Log:
print error message
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Sat Mar 31 18:04:44 2007
@@ -1610,9 +1610,10 @@ static int av_encode(AVFormatContext **o
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),
More information about the ffmpeg-cvslog
mailing list