aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mxfenc.c
diff options
context:
space:
mode:
authorClément Bœsch <clement.boesch@smartjog.com>2012-08-03 10:20:44 +0200
committerClément Bœsch <ubitux@gmail.com>2012-08-08 09:11:25 +0200
commit6b3484dcbc6fe6a5f3d0919922790592c9d5a608 (patch)
tree18c2878e9acec5cd1eeaa7b047aa3f9dd1d07af6 /libavformat/mxfenc.c
parentaad737c669b9f0d5c58cafce8a8dd97b69ad266b (diff)
downloadffmpeg-6b3484dcbc6fe6a5f3d0919922790592c9d5a608.tar.gz
lavf/mxfenc: better error handling with invalid frame rate.
Diffstat (limited to 'libavformat/mxfenc.c')
-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);