diff options
author | Clément Bœsch <clement.boesch@smartjog.com> | 2012-08-03 10:20:44 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-08-08 09:11:25 +0200 |
commit | 6b3484dcbc6fe6a5f3d0919922790592c9d5a608 (patch) | |
tree | 18c2878e9acec5cd1eeaa7b047aa3f9dd1d07af6 /libavformat/mxfenc.c | |
parent | aad737c669b9f0d5c58cafce8a8dd97b69ad266b (diff) | |
download | ffmpeg-6b3484dcbc6fe6a5f3d0919922790592c9d5a608.tar.gz |
lavf/mxfenc: better error handling with invalid frame rate.
Diffstat (limited to 'libavformat/mxfenc.c')
-rw-r--r-- | libavformat/mxfenc.c | 5 |
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); |