mov: cosmetics - move a line to a better position and add a comment
mov: cosmetics - move a line to a better position and add a comment Oana Andreea Stratulat submitted a similar patch to trac, but forgot to notify the ML about it. Signed-off-by: Jean First <jeanfirst@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
60168f9319
commit
fa169d5650
@ -794,6 +794,9 @@ static int mov_read_mvhd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
av_dlog(c->fc, "time scale = %i\n", c->time_scale);
|
||||
|
||||
c->duration = (version == 1) ? avio_rb64(pb) : avio_rb32(pb); /* duration */
|
||||
// set the AVCodecContext duration because the duration of individual tracks
|
||||
// may be inaccurate
|
||||
c->fc->duration = av_rescale(c->duration, AV_TIME_BASE, c->time_scale);
|
||||
avio_rb32(pb); /* preferred scale */
|
||||
|
||||
avio_rb16(pb); /* preferred volume */
|
||||
@ -809,8 +812,6 @@ static int mov_read_mvhd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
avio_rb32(pb); /* selection duration */
|
||||
avio_rb32(pb); /* current time */
|
||||
avio_rb32(pb); /* next track ID */
|
||||
|
||||
c->fc->duration = av_rescale(c->duration, AV_TIME_BASE, c->time_scale);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user