1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavf/mxfenc: better error handling with invalid frame rate.

This commit is contained in:
Clément Bœsch 2012-08-03 10:20:44 +02:00 committed by Clément Bœsch
parent aad737c669
commit 6b3484dcbc

View File

@ -1705,8 +1705,9 @@ static int mxf_write_header(AVFormatContext *s)
mxf->time_base = (AVRational){ 1001, 60000 };
break;
default:
av_log(s, AV_LOG_ERROR, "unsupported video frame rate\n");
return -1;
av_log(s, AV_LOG_ERROR, "Unsupported video frame rate %d/%d\n",
tbc.den, tbc.num);
return AVERROR(EINVAL);
}
rate = av_inv_q(mxf->time_base);
avpriv_set_pts_info(st, 64, mxf->time_base.num, mxf->time_base.den);