1
mirror of https://github.com/mpv-player/mpv synced 2024-09-05 02:48:21 +02: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:
arpi 2002-10-16 16:51:03 +00:00
parent 6d80c0060e
commit 4644a460cb
2 changed files with 2 additions and 2 deletions

View File

@ -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 !

View File

@ -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;