comparison parser.c @ 6986:6ef755b234c2 libavcodec

cosmetic
author michael
date Mon, 02 Jun 2008 13:14:01 +0000
parents 7c8df4f99d08
children c67a4cff28a1
comparison
equal deleted inserted replaced
6985:7c8df4f99d08 6986:6ef755b234c2
76 return s; 76 return s;
77 } 77 }
78 78
79 void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove){ 79 void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove){
80 int i; 80 int i;
81
81 s->dts= s->pts= AV_NOPTS_VALUE; 82 s->dts= s->pts= AV_NOPTS_VALUE;
82 s->offset= 0; 83 s->offset= 0;
83 for(i = 0; i < AV_PARSER_PTS_NB; i++) { 84 for(i = 0; i < AV_PARSER_PTS_NB; i++) {
84 if ( s->next_frame_offset + off >= s->cur_frame_offset[i] 85 if ( s->next_frame_offset + off >= s->cur_frame_offset[i]
85 &&(s-> frame_offset < s->cur_frame_offset[i] || !s->frame_offset) 86 &&(s-> frame_offset < s->cur_frame_offset[i] || !s->frame_offset)
86 && s->next_frame_offset + off < s->cur_frame_end[i]){ 87 && s->next_frame_offset + off < s->cur_frame_end[i]){
87 s->dts= s->cur_frame_dts[i]; 88 s->dts= s->cur_frame_dts[i];
88 s->pts= s->cur_frame_pts[i]; 89 s->pts= s->cur_frame_pts[i];
89 s->offset = s->next_frame_offset - s->cur_frame_offset[i]; 90 s->offset = s->next_frame_offset - s->cur_frame_offset[i];
90 if(remove) 91 if(remove)