[FFmpeg-devel] [PATCH] avformat/webvttdec: Skip more parts of header to let parsing continue

Kristoffer Brånemyr ztion1 at yahoo.se
Mon Feb 26 20:36:32 EET 2024


Hi,
Here is a short patch to skip more parts of the header for the WebVTT subtitle format. Without this the parser seems to stop and no subtitles are produced for the user.You can find the WebVTT specification here: WebVTT: The Web Video Text Tracks Format

| 
| 
| 
|  |  |

 |

 |
| 
|  | 
WebVTT: The Web Video Text Tracks Format


 |

 |

 |


I attach an example file using the STYLE header part.
I verified that with this change, I can see the subtitles using mpv.

I tried to run fate, but even without my changes it seems to fail?

-- /Kristoffer Brånemyr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-webvttdec-Skip-more-parts-of-header-to-let-.patch
Type: text/x-patch
Size: 986 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240226/a243ce7e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example_style.vtt
Type: text/vtt
Size: 32185 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240226/a243ce7e/attachment-0001.bin>


More information about the ffmpeg-devel mailing list