Commit 3fba9f21 authored by bcoudurier's avatar bcoudurier

print error message

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8569 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 03df37d5
...@@ -1610,9 +1610,10 @@ static int av_encode(AVFormatContext **output_files, ...@@ -1610,9 +1610,10 @@ static int av_encode(AVFormatContext **output_files,
if (ost->video_resample) { if (ost->video_resample) {
avcodec_get_frame_defaults(&ost->pict_tmp); avcodec_get_frame_defaults(&ost->pict_tmp);
if( avpicture_alloc( (AVPicture*)&ost->pict_tmp, codec->pix_fmt, 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); exit(1);
}
ost->img_resample_ctx = sws_getContext( ost->img_resample_ctx = sws_getContext(
icodec->width - (frame_leftBand + frame_rightBand), icodec->width - (frame_leftBand + frame_rightBand),
icodec->height - (frame_topBand + frame_bottomBand), icodec->height - (frame_topBand + frame_bottomBand),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment