[FFmpeg-soc] [soc]: r4546 - seek_api/parser.c

spyfeng subversion at mplayerhq.hu
Mon Jun 29 17:55:18 CEST 2009


Author: spyfeng
Date: Mon Jun 29 17:55:18 2009
New Revision: 4546

Log:
update to the latest version.

Modified:
   seek_api/parser.c

Modified: seek_api/parser.c
==============================================================================
--- seek_api/parser.c	Sun Jun 28 23:03:17 2009	(r4545)
+++ seek_api/parser.c	Mon Jun 29 17:55:18 2009	(r4546)
@@ -89,7 +89,8 @@ void ff_fetch_timestamp(AVCodecParserCon
     s->offset= 0;
     for(i = 0; i < AV_PARSER_PTS_NB; i++) {
         if (   s->cur_offset + off >= s->cur_frame_offset[i]
-            &&(s->     frame_offset       <  s->cur_frame_offset[i] || !s->frame_offset)
+            && (s->frame_offset < s->cur_frame_offset[i] ||
+              (!s->frame_offset && !s->next_frame_offset)) // first field/frame
             //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];


More information about the FFmpeg-soc mailing list