[FFmpeg-trac] #4616(avformat:open): Closed Captions: Data Ignored since exceeding screen width

FFmpeg trac at avcodec.org
Thu Aug 27 19:03:02 CEST 2015


#4616: Closed Captions: Data Ignored since exceeding screen width
-------------------------------------+-------------------------------------
             Reporter:  cehoyos      |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  cc mov       |               Blocked By:
  videolan                           |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  1            |
-------------------------------------+-------------------------------------

Comment (by cehoyos):

 {{{
 diff --git a/libavformat/mov.c b/libavformat/mov.c
 index 45367d3..132de3d 100644
 --- a/libavformat/mov.c
 +++ b/libavformat/mov.c
 @@ -4626,6 +4626,10 @@ static int mov_read_packet(AVFormatContext *s,
 AVPacket *pkt)
      if (mov->aax_mode)
          aax_filter(pkt->data, pkt->size, mov);

 +if (st->codec->codec_id == AV_CODEC_ID_EIA_608) {
 +memmove(pkt->data, pkt->data + 8, pkt->size - 8);
 +pkt->size -= 8;
 +}
      return 0;
  }
 }}}

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


More information about the FFmpeg-trac mailing list