mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 06:46:55 +00:00
ss_div/ss_mul defaults to 0
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7755 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6d80c0060e
commit
4644a460cb
@ -1399,7 +1399,7 @@ if(trak->samplesize){
|
||||
// x*=char2int(trak->stdata,32); // bytes/packet
|
||||
x*=char2int(trak->stdata,36); // bytes/frame
|
||||
} else {
|
||||
if(ds->ss_div!=1 || ds->ss_mul!=1){
|
||||
if(ds->ss_div && ds->ss_mul){
|
||||
// workaround for buggy files like 7up-high-traffic-areas.mov,
|
||||
// with missing stsd v1 header containing compression rate
|
||||
x/=ds->ss_div; x*=ds->ss_mul; // compression ratio fix ! HACK !
|
||||
|
@ -46,7 +46,7 @@ demux_stream_t* new_demuxer_stream(struct demuxer_st *demuxer,int id){
|
||||
ds->asf_seq=-1;
|
||||
ds->asf_packet=NULL;
|
||||
//----------------
|
||||
ds->ss_mul=ds->ss_div=1;
|
||||
ds->ss_mul=ds->ss_div=0;
|
||||
ds->block_size=1;
|
||||
//----------------
|
||||
ds->sh=NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user