# HG changeset patch # User arpi # Date 1034787063 0 # Node ID 0568245deeb8bfeca0d49ba094260979be158657 # Parent f569630d892f6988f21e0ac82b85fe49ee37fc50 ss_div/ss_mul defaults to 0 diff -r f569630d892f -r 0568245deeb8 libmpdemux/demux_mov.c --- a/libmpdemux/demux_mov.c Wed Oct 16 16:49:58 2002 +0000 +++ b/libmpdemux/demux_mov.c Wed Oct 16 16:51:03 2002 +0000 @@ -1399,7 +1399,7 @@ // 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 ! diff -r f569630d892f -r 0568245deeb8 libmpdemux/demuxer.c --- a/libmpdemux/demuxer.c Wed Oct 16 16:49:58 2002 +0000 +++ b/libmpdemux/demuxer.c Wed Oct 16 16:51:03 2002 +0000 @@ -46,7 +46,7 @@ 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;