Mercurial > mplayer.hg
comparison libmpdemux/demuxer.c @ 37166:3721d8f98dfe
Support -ni option for all formats.
Can work around playback issues with badly interleaved files.
author | reimar |
---|---|
date | Sun, 31 Aug 2014 09:39:13 +0000 |
parents | a4c2668dadb6 |
children |
comparison
equal
deleted
inserted
replaced
37165:681c7f805a23 | 37166:3721d8f98dfe |
---|---|
720 // or when one stream is shorter, without breaking large audio | 720 // or when one stream is shorter, without breaking large audio |
721 // delay with well interleaved files. | 721 // delay with well interleaved files. |
722 // This needs to be enough for at least 1 second of packets | 722 // This needs to be enough for at least 1 second of packets |
723 // since libavformat mov demuxer does not try to interleave | 723 // since libavformat mov demuxer does not try to interleave |
724 // with more than 1s precision. | 724 // with more than 1s precision. |
725 if (ds->fill_count > 80) | 725 if (!force_ni && ds->fill_count > 80) |
726 break; | 726 break; |
727 // avoid printing the "too many ..." message over and over | 727 // avoid printing the "too many ..." message over and over |
728 if (ds->eof) | 728 if (ds->eof) |
729 break; | 729 break; |
730 if (apacks >= MAX_PACKS || abytes >= MAX_PACK_BYTES) { | 730 if (apacks >= MAX_PACKS || abytes >= MAX_PACK_BYTES) { |