Browse Source

mpeg4: fix typo in mpeg4_encode_gop_header()

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 14 years ago
parent
commit
f5bda9fcbb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/mpeg4videoenc.c

+ 2
- 2
libavcodec/mpeg4videoenc.c View File

@@ -836,8 +836,8 @@ static void mpeg4_encode_gop_header(MpegEncContext * s){
s->last_time_base= FFUDIV(time, s->avctx->time_base.den);

seconds= FFUDIV(time, s->avctx->time_base.den);
minutes= FFUDIV(seconds, 60); FFUMOD(seconds, 60);
hours = FFUDIV(minutes, 60); FFUMOD(minutes, 60);
minutes= FFUDIV(seconds, 60); seconds = FFUMOD(seconds, 60);
hours = FFUDIV(minutes, 60); minutes = FFUMOD(minutes, 60);
hours = FFUMOD(hours , 24);

put_bits(&s->pb, 5, hours);


Loading…
Cancel
Save