aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gif.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-04-30 21:43:59 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-04-30 21:43:59 +0000
commitc0df9d75bd9a3170a793eb1651354076360998e8 (patch)
tree0f4c75f07fc395d168bf0a7fcd92d6f9d9e9281b /libavformat/gif.c
parentb7782b47c95c26d674df134973d1403e80fe9767 (diff)
downloadffmpeg-c0df9d75bd9a3170a793eb1651354076360998e8.tar.gz
switch to native time bases
Originally committed as revision 4168 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/gif.c')
-rw-r--r--libavformat/gif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c
index bf04e81bc0..0cb9b9a1ee 100644
--- a/libavformat/gif.c
+++ b/libavformat/gif.c
@@ -316,7 +316,7 @@ static int gif_write_header(AVFormatContext *s)
} else {
width = video_enc->width;
height = video_enc->height;
-// rate = video_enc->frame_rate;
+// rate = video_enc->time_base.den;
}
/* XXX: is it allowed ? seems to work so far... */
@@ -349,7 +349,7 @@ static int gif_write_video(AVFormatContext *s,
/* XXX: should use delay, in order to be more accurate */
/* instead of using the same rounded value each time */
/* XXX: don't even remember if I really use it for now */
- jiffies = (70*enc->frame_rate_base/enc->frame_rate) - 1;
+ jiffies = (70*enc->time_base.num/enc->time_base.den) - 1;
put_le16(pb, jiffies);