Skip to content
Snippets Groups Projects
Commit 6b3484dc authored by Clément Bœsch's avatar Clément Bœsch Committed by Clément Bœsch
Browse files

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

parent aad737c6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment