[SCM] libav/experimental: framerate check
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:42:49 UTC 2013
The following commit has been merged in the experimental branch:
commit e8ea90123d2b99d3fca37a5619fefe03b38763c2
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Sun Jan 23 14:07:25 2005 +0000
framerate check
Originally committed as revision 3869 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 6b5546c..45c9e56 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1049,6 +1049,11 @@ int MPV_encode_init(AVCodecContext *avctx)
if(s->avctx->thread_count > 1)
s->rtp_mode= 1;
+ if(!avctx->frame_rate || !avctx->frame_rate_base){
+ av_log(avctx, AV_LOG_ERROR, "framerate not set\n");
+ return -1;
+ }
+
i= ff_gcd(avctx->frame_rate, avctx->frame_rate_base);
if(i > 1){
av_log(avctx, AV_LOG_INFO, "removing common factors from framerate\n");
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list