summaryrefslogtreecommitdiffstats
path: root/demux/video.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-01-27 20:37:51 +0000
committerwm4 <wm4@nowhere>2012-12-11 00:37:55 +0100
commit4a40eeda941717b1a3d60d22c0c1020ea9c2038d (patch)
tree968a4d34572a9ae449b1805d380668c71d417b56 /demux/video.c
parentfdbf43705581ee676d3e1d22210def3e21ce8fb3 (diff)
downloadmpv-4a40eeda941717b1a3d60d22c0c1020ea9c2038d.tar.bz2
mpv-4a40eeda941717b1a3d60d22c0c1020ea9c2038d.tar.xz
demux: fix behavior with files that have sparse video packets
Improve EOF handling in ds_fill_buffer for the case where one stream ends much earlier than the others, in particular make sure the "too many ..." message is not printed over and over. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32823 b3059339-0415-0410-9bf9-f77b7e298cf2 Conflicts: libmpdemux/demuxer.c Try to improve seeking in files with only few video packets, in particular files with cover art. This might cause issues with badly interleaved files, particularly together with -audio-delay, even though I did not see issues in my very limited testing. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35486 b3059339-0415-0410-9bf9-f77b7e298cf2 Conflicts: libmpdemux/demuxer.c libmpdemux/demuxer.h Fix code that detects streams temporarily lacking data to work properly with e.g. DVDs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35499 b3059339-0415-0410-9bf9-f77b7e298cf2 Conflicts: libmpdemux/demuxer.c Make stream eof detection less sensitive. Fixes bug #2111. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35543 b3059339-0415-0410-9bf9-f77b7e298cf2 Conflicts: libmpdemux/demuxer.c
Diffstat (limited to 'demux/video.c')
-rw-r--r--demux/video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/video.c b/demux/video.c
index 6a9b6b370b..02ecf9d4a7 100644
--- a/demux/video.c
+++ b/demux/video.c
@@ -422,6 +422,7 @@ int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char**
int picture_coding_type=0;
int in_size=0;
video_codec_t video_codec = find_video_codec(sh_video);
+ sh_video->needs_parsing = video_codec != VIDEO_OTHER;
*start=NULL;