Commit 6b3484dc authored by Clément Bœsch's avatar Clément Bœsch Committed by Clément Bœsch

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

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