# HG changeset patch # User michael # Date 1212417627 0 # Node ID c67a4cff28a1a9bb6c4f2f7533e4e6e90c4cdc8b # Parent 2dde03056bd609a4fb4a31259b900c39c9dddf42 Our MPEG-TS demuxer does not send complete PES packets but sends them piecewise, thus the end values cannot be used for associating timestamps. diff -r 2dde03056bd6 -r c67a4cff28a1 parser.c --- a/parser.c Mon Jun 02 14:23:25 2008 +0000 +++ b/parser.c Mon Jun 02 14:40:27 2008 +0000 @@ -84,7 +84,8 @@ for(i = 0; i < AV_PARSER_PTS_NB; i++) { if ( s->next_frame_offset + off >= s->cur_frame_offset[i] &&(s-> frame_offset < s->cur_frame_offset[i] || !s->frame_offset) - && s->next_frame_offset + off < s->cur_frame_end[i]){ + //check is disabled becausue mpeg-ts doesnt send complete PES packets + && /*s->next_frame_offset + off <*/ s->cur_frame_end[i]){ s->dts= s->cur_frame_dts[i]; s->pts= s->cur_frame_pts[i]; s->offset = s->next_frame_offset - s->cur_frame_offset[i];