summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-08 13:34:08 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-08 13:34:08 +0000
commitec88add691fa1f7f202ca5e547a26f73b2940bfd (patch)
tree749a404896955dfca9ecf9e502d947b3d3088b58 /mplayer.c
parent3a2dbeb6fb6087b9431b1aa29daafe6187c5e812 (diff)
downloadmpv-ec88add691fa1f7f202ca5e547a26f73b2940bfd.tar.bz2
mpv-ec88add691fa1f7f202ca5e547a26f73b2940bfd.tar.xz
ffmpeg12 fix - now passing sequence header
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1463 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 45d0f47d69..7674310ac0 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1252,7 +1252,7 @@ if(1)
if(file_format==DEMUXER_TYPE_MPEG_ES || file_format==DEMUXER_TYPE_MPEG_PS){
int in_frame=0;
float newfps;
- videobuf_len=0;
+ //videobuf_len=0;
while(videobuf_len<VIDEOBUFFER_SIZE-MAX_VIDEO_PACKET_SIZE){
int i=sync_video_packet(d_video);
void* buffer=&videobuffer[videobuf_len+4];
@@ -1307,6 +1307,7 @@ if(1)
// fix mpeg2 frametime:
frame_time=(100+picture->repeat_count)*0.01f;
picture->repeat_count=0;
+ videobuf_len=0;
} else {
// frame-based file formats: (AVI,ASF,MOV)