changeset 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 2dde03056bd6
children 7c280a9f0f97
files parser.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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];