comparison parser.c @ 6980:ddbc1767b7cd libavcodec

indent
author michael
date Mon, 02 Jun 2008 03:10:40 +0000
parents 4257fdcf664e
children abe4c0ba1be7
comparison
equal deleted inserted replaced
6979:4257fdcf664e 6980:ddbc1767b7cd
121 s->cur_frame_end[k] = s->cur_offset + buf_size; 121 s->cur_frame_end[k] = s->cur_offset + buf_size;
122 s->cur_frame_pts[k] = pts; 122 s->cur_frame_pts[k] = pts;
123 s->cur_frame_dts[k] = dts; 123 s->cur_frame_dts[k] = dts;
124 } 124 }
125 125
126 if (s->fetch_timestamp){ 126 if (s->fetch_timestamp){
127 s->fetch_timestamp=0; 127 s->fetch_timestamp=0;
128 s->last_pts = s->pts; 128 s->last_pts = s->pts;
129 s->last_dts = s->dts; 129 s->last_dts = s->dts;
130 s->dts= s->pts= AV_NOPTS_VALUE; 130 s->dts= s->pts= AV_NOPTS_VALUE;
131 s->offset= 0; 131 s->offset= 0;
132 for(i = 0; i < AV_PARSER_PTS_NB; i++) { 132 for(i = 0; i < AV_PARSER_PTS_NB; i++) {
148 /* fill the data for the current frame */ 148 /* fill the data for the current frame */
149 s->frame_offset = s->next_frame_offset; 149 s->frame_offset = s->next_frame_offset;
150 150
151 /* offset of the next frame */ 151 /* offset of the next frame */
152 s->next_frame_offset = s->cur_offset + index; 152 s->next_frame_offset = s->cur_offset + index;
153 s->fetch_timestamp=1; 153 s->fetch_timestamp=1;
154 } 154 }
155 if (index < 0) 155 if (index < 0)
156 index = 0; 156 index = 0;
157 s->cur_offset += index; 157 s->cur_offset += index;
158 return index; 158 return index;