comparison utils.c @ 605:deece487318e libavformat

fixing pipe seek bug
author michael
date Mon, 06 Dec 2004 00:08:37 +0000
parents 15cf78d9aceb
children ef6d04c1dd9a
comparison
equal deleted inserted replaced
604:ed2709c1f49c 605:deece487318e
1615 if (file_size < 0) 1615 if (file_size < 0)
1616 file_size = 0; 1616 file_size = 0;
1617 } 1617 }
1618 ic->file_size = file_size; 1618 ic->file_size = file_size;
1619 1619
1620 if (ic->iformat == &mpegps_demux) { 1620 if (ic->iformat == &mpegps_demux && file_size && !ic->pb.is_streamed) {
1621 /* get accurate estimate from the PTSes */ 1621 /* get accurate estimate from the PTSes */
1622 av_estimate_timings_from_pts(ic); 1622 av_estimate_timings_from_pts(ic);
1623 } else if (av_has_timings(ic)) { 1623 } else if (av_has_timings(ic)) {
1624 /* at least one components has timings - we use them for all 1624 /* at least one components has timings - we use them for all
1625 the components */ 1625 the components */