Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-31 21:49:28 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-01-31 21:59:26 +0300
commitb9c3f041e029ccb5c0462fb46eb8b95f69cd9a9c (patch)
tree6216a8ee0765bd493ff02d0ee17bb52d30cdab99 /libavcodec/h261enc.c
parentca2e3e47fc6f755e5614e33dc0e654b8137fc16f (diff)
avcodec/h261enc: Avoid casts, Simplify code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h261enc.c')
-rw-r--r--libavcodec/h261enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h261enc.c b/libavcodec/h261enc.c
index d7b56a8e43..87eb94f1bd 100644
--- a/libavcodec/h261enc.c
+++ b/libavcodec/h261enc.c
@@ -61,8 +61,8 @@ void ff_h261_encode_picture_header(MpegEncContext *s, int picture_number)
put_bits(&s->pb, 20, 0x10); /* PSC */
- temp_ref = s->picture_number * (int64_t)30000 * s->avctx->time_base.num /
- (1001 * (int64_t)s->avctx->time_base.den); // FIXME maybe this should use a timestamp
+ temp_ref = s->picture_number * 30000L * s->avctx->time_base.num /
+ (1001L * s->avctx->time_base.den); // FIXME maybe this should use a timestamp
put_sbits(&s->pb, 5, temp_ref); /* TemporalReference */
put_bits(&s->pb, 1, 0); /* split screen off */