diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-04-04 14:47:44 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-10-15 10:37:43 +0400 |
commit | 7ea1b3472a61de4aa4d41b571e99418e4997ad41 (patch) | |
tree | fcf38bb7d5d1f770f1e4b8fea256fa6c45313add /libavcodec/dirac.c | |
parent | d565fef1b83b6c5f8afb32229260b79f67c68109 (diff) |
lavc: deprecate the use of AVCodecContext.time_base for decoding
When decoding, this field holds the inverse of the framerate that can be
written in the headers for some codecs. Using a field called 'time_base'
for this is very misleading, as there are no timestamps associated with
it. Furthermore, this field is used for a very different purpose during
encoding.
Add a new field, called 'framerate', to replace the use of time_base for
decoding.
Diffstat (limited to 'libavcodec/dirac.c')
-rw-r--r-- | libavcodec/dirac.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/dirac.c b/libavcodec/dirac.c index 10c29d7336..5e13a849fc 100644 --- a/libavcodec/dirac.c +++ b/libavcodec/dirac.c @@ -172,8 +172,7 @@ static int parse_source_parameters(AVCodecContext *avctx, GetBitContext *gb, /* [DIRAC_STD] Table 10.3 values 9-10 */ frame_rate = dirac_frame_rate[source->frame_rate_index - 9]; } - av_reduce(&avctx->time_base.num, &avctx->time_base.den, - frame_rate.den, frame_rate.num, 1 << 30); + avctx->framerate = frame_rate; /* [DIRAC_STD] 10.3.6 Pixel Aspect Ratio. * pixel_aspect_ratio(video_params) */ |