[FFmpeg-trac] #5474(ffmpeg:new): pgssub with backward moving timestamps (was: pgssub remuxing regression)

FFmpeg trac at avcodec.org
Tue Jun 14 19:03:44 CEST 2016


#5474: pgssub with backward moving timestamps
-------------------------------------+-------------------------------------
             Reporter:  cehoyos      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  ffmpeg
              Version:  git-master   |               Resolution:
             Keywords:  pgssub       |               Blocked By:
  regression                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by michael):

 * cc: reimar (added)


Comment:

 The timestamps go backward, the error about dts is as such correct
 Packet dts:180180 pts:180180
 pts 2002000
 Packet dts:180151 pts:180151
 pts 2001678
 Packet dts:177559 pts:177559
 pts 1972878
 Packet dts:177617 pts:177617
 pts 1973522
 Packet dts:177617 pts:177617
 pts 2002000
 {{{
 diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
 index 133d08b..9c52e46 100644
 --- a/libavcodec/pgssubdec.c
 +++ b/libavcodec/pgssubdec.c
 @@ -637,7 +637,7 @@ static int decode(AVCodecContext *avctx, void *data,
 int *data_size,
          return -1;

      buf_end = buf + buf_size;
 -
 +av_log(0,0, "Packet dts:%Ld pts:%Ld\n", avpkt->dts, avpkt->pts);
      /* Step through buffer to identify segments */
      while (buf < buf_end) {
          segment_type   = bytestream_get_byte(&buf);
 @@ -685,7 +685,7 @@ static int decode(AVCodecContext *avctx, void *data,
 int *data_size,

          buf += segment_length;
      }
 -
 +av_log(0,0, "pts %Ld\n", ((AVSubtitle*)(data))->pts);
      return buf_size;
  }


 }}}

 Maybe the maintainer (in CC) can take a look or comment

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5474#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list