summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-07 08:31:57 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-07 08:31:57 +0000
commit836ffdb9f4171f9eba6ff1190fc0cfac86a967c7 (patch)
tree67264f7fc499ec444e8c0ad31e307f4d0d83dd79 /libmpdemux
parent1c4710b11042b2aa7ccd5f7de9fb8b038189d251 (diff)
downloadmpv-836ffdb9f4171f9eba6ff1190fc0cfac86a967c7.tar.bz2
mpv-836ffdb9f4171f9eba6ff1190fc0cfac86a967c7.tar.xz
cosmetics: split separate instructions in separate lines
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23730 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_mpg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libmpdemux/demux_mpg.c b/libmpdemux/demux_mpg.c
index cbac67167a..473d7127c4 100644
--- a/libmpdemux/demux_mpg.c
+++ b/libmpdemux/demux_mpg.c
@@ -309,7 +309,8 @@ static int demux_mpg_read_packet(demuxer_t *demux,int id){
}
while(len>0){ // Skip stuFFing bytes
- c=stream_read_char(demux->stream);--len;
+ c=stream_read_char(demux->stream);
+ --len;
if(c!=0xFF)break;
}
if((c>>6)==1){ // Read (skip) STD scale & size value
@@ -338,9 +339,11 @@ static int demux_mpg_read_packet(demuxer_t *demux,int id){
int hdrlen;
int parse_ext2;
// System-2 (.VOB) stream:
- c=stream_read_char(demux->stream); pts_flags=c>>6;
+ c=stream_read_char(demux->stream);
+ pts_flags=c>>6;
parse_ext2 = (id == 0x1FD) && ((c & 0x3F) == 1);
- c=stream_read_char(demux->stream); hdrlen=c;
+ c=stream_read_char(demux->stream);
+ hdrlen=c;
len-=2;
mp_dbg(MSGT_DEMUX,MSGL_DBG3," hdrlen=%d (len=%d)",hdrlen,len);
if(hdrlen>len){ mp_msg(MSGT_DEMUX,MSGL_V,"demux_mpg: invalid header length \n"); return -1;}