summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/mxfenc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 58c31114e5..2d5bf67090 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -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);