• Clément Bœsch's avatar
    lavc/srtenc: fix invalid read in case of SubRip. · eb36ee1e
    Clément Bœsch authored
    Regression since 6057de19. The ptr-2 is used to eat the \r\n and add
    the position information on the timing line. This can't be done in case
    of SubRip where the timing isn't present in the payload.
    
    Note that we can't use yet the side data to transmit the position
    information since the encode subtitles API is still using buffer+size
    instead AVPacket as input.
    eb36ee1e
srtenc.c 9.17 KB