diff options
Diffstat (limited to 'libmpdemux/parse_es.c')
-rw-r--r-- | libmpdemux/parse_es.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libmpdemux/parse_es.c b/libmpdemux/parse_es.c index 543d5531fa..209481a4e0 100644 --- a/libmpdemux/parse_es.c +++ b/libmpdemux/parse_es.c @@ -65,7 +65,7 @@ eof_out: int read_video_packet(demux_stream_t *ds){ int packet_start; int res, read; - + if (VIDEOBUFFER_SIZE - videobuf_len < 5) return 0; // SYNC STREAM @@ -78,14 +78,14 @@ int packet_start; videobuffer[videobuf_len+2]=1; videobuffer[videobuf_len+3]=next_nal; videobuf_len+=4; - + // READ PACKET: res = demux_pattern_3(ds, &videobuffer[videobuf_len], VIDEOBUFFER_SIZE - videobuf_len, &read, 0x100); videobuf_len += read; if (!res) goto eof_out; - + videobuf_len-=3; mp_dbg(MSGT_PARSEES,MSGL_DBG2,"videobuf: packet 0x1%02X len=%d (total=%d)\n",videobuffer[packet_start+3],videobuf_len-packet_start,videobuf_len); @@ -109,9 +109,9 @@ int skip_video_packet(demux_stream_t *ds){ // SYNC STREAM // if(!sync_video_packet(ds)) return 0; // cannot sync (EOF) - + videobuf_code_len=0; // force resync - + // SYNC AGAIN: return sync_video_packet(ds); } |