[FFmpeg-trac] #9011(avformat:new): HLS muxer is locale sensitive
FFmpeg
trac at avcodec.org
Thu Nov 26 21:00:43 EET 2020
#9011: HLS muxer is locale sensitive
----------------------------------+--------------------------------------
Reporter: kurufu | Type: defect
Status: new | Priority: normal
Component: avformat | Version: git-master
Keywords: hls | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
Summary of the bug:
The HLS Muxer fails to parse parameters when in locales with `,` radix.
The HLS Muxer also outputs invalid playlists when in these same locales.
How to reproduce:
Recompile ffmpeg cli with `setlocale(LC_ALL, "")` to initialize locales
(see diff). This issue affects users of libavformat from within locale
sensitive applications but just initializing locales in ffmpeg cli is
enough to replicate all the issues.
{{{
% ./ffmpeg -i input.mkv -c:v copy -f hls output.m3u8
# Observe the resulting m3u8 contains #EXTINF entries with , radix.
% LC_NUMERIC=es_ES.UTF-8 ./ffmpeg -i input.mkv -c:v copy -hls_time 0.5 -f
hls output.m3u8
[hls muxer @ 0x55f949438cc0] [Eval @ 0x7ffd63b5c9a0] Invalid chars '.5' at
the end of expression '0.5'
[hls muxer @ 0x55f949438cc0] Unable to parse option value "0.5"
[hls muxer @ 0x55f949438cc0] Error setting option hls_time to value 0.5.
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
Error initializing output stream 0:1 --
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9011>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list