Revision 371bf806

View differences:

libavformat/asf.c
196 196
            int type, type_specific_size, sizeX;
197 197
            uint64_t total_size;
198 198
            unsigned int tag1;
199
            int64_t pos1, pos2;
199
            int64_t pos1, pos2, start_time;
200 200
            int test_for_ext_stream_audio, is_dvr_ms_audio=0;
201 201

  
202 202
            pos1 = url_ftell(pb);
......
209 209
            if (!asf_st)
210 210
                goto fail;
211 211
            st->priv_data = asf_st;
212
            st->start_time = asf->hdr.preroll;
212
            start_time = asf->hdr.preroll;
213

  
213 214
            if(!(asf->hdr.flags & 0x01)) { // if we aren't streaming...
214 215
                st->duration = asf->hdr.send_time /
215
                    (10000000 / 1000) - st->start_time;
216
                    (10000000 / 1000) - start_time;
216 217
            }
217 218
            get_guid(pb, &g);
218 219

  
tests/libav.regression.ref
4 4
./tests/data/b-libav.avi CRC=0x400c29e9
5 5
786446e80ead936e5faa8f5908f19281 *./tests/data/b-libav.asf
6 6
339775 ./tests/data/b-libav.asf
7
./tests/data/b-libav.asf CRC=0x74113749
7
./tests/data/b-libav.asf CRC=0x7f38e57b
8 8
1ce78eeb6881ffe5b649a9b5105de919 *./tests/data/b-libav.rm
9 9
355405 ./tests/data/b-libav.rm
10 10
bdb7484c68db722f66ba1630cf79844c *./tests/data/b-libav.mpg

Also available in: Unified diff