Mercurial > libavcodec.hg
comparison parser.c @ 6988:c67a4cff28a1 libavcodec
Our MPEG-TS demuxer does not send complete PES packets but sends them
piecewise, thus the end values cannot be used for associating timestamps.
author | michael |
---|---|
date | Mon, 02 Jun 2008 14:40:27 +0000 |
parents | 6ef755b234c2 |
children | 7c280a9f0f97 |
comparison
equal
deleted
inserted
replaced
6987:2dde03056bd6 | 6988:c67a4cff28a1 |
---|---|
82 s->dts= s->pts= AV_NOPTS_VALUE; | 82 s->dts= s->pts= AV_NOPTS_VALUE; |
83 s->offset= 0; | 83 s->offset= 0; |
84 for(i = 0; i < AV_PARSER_PTS_NB; i++) { | 84 for(i = 0; i < AV_PARSER_PTS_NB; i++) { |
85 if ( s->next_frame_offset + off >= s->cur_frame_offset[i] | 85 if ( s->next_frame_offset + off >= s->cur_frame_offset[i] |
86 &&(s-> frame_offset < s->cur_frame_offset[i] || !s->frame_offset) | 86 &&(s-> frame_offset < s->cur_frame_offset[i] || !s->frame_offset) |
87 && s->next_frame_offset + off < s->cur_frame_end[i]){ | 87 //check is disabled becausue mpeg-ts doesnt send complete PES packets |
88 && /*s->next_frame_offset + off <*/ s->cur_frame_end[i]){ | |
88 s->dts= s->cur_frame_dts[i]; | 89 s->dts= s->cur_frame_dts[i]; |
89 s->pts= s->cur_frame_pts[i]; | 90 s->pts= s->cur_frame_pts[i]; |
90 s->offset = s->next_frame_offset - s->cur_frame_offset[i]; | 91 s->offset = s->next_frame_offset - s->cur_frame_offset[i]; |
91 if(remove) | 92 if(remove) |
92 s->cur_frame_offset[i]= INT64_MAX; | 93 s->cur_frame_offset[i]= INT64_MAX; |