Skip to content

Commit

Permalink
[demuxers/Mp4] Calculate average audio byterate for fragmented files too
Browse files Browse the repository at this point in the history
  • Loading branch information
eumagga0x2a committed Jul 28, 2019
1 parent f8400d6 commit 68bdfb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion avidemux_plugins/ADM_demuxers/Mp4/ADM_mp4Fragments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ bool MP4Header::indexVideoFragments(int trackNo)
MP4Index *dex=trk->index+i;
dex->offset=fragList[i].offset;
dex->size=fragList[i].size;

trk->totalDataSize+=fragList[i].size;

double dts=sum;
double ctts=fragList[i].composition;

Expand Down Expand Up @@ -262,6 +263,7 @@ bool MP4Header::indexAudioFragments(int trackNo)
MP4Index *dex=trk->index+i;
dex->offset=fragList[i].offset;
dex->size=fragList[i].size;
trk->totalDataSize+=fragList[i].size;

double dts=sum;
dts/=trk->scale;
Expand Down

0 comments on commit 68bdfb0

Please sign in to comment.