Revision 371bf806 libavformat/asf.c

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

  

Also available in: Unified diff