[FFmpeg-trac] #7313(avformat:new): hls_fmp4_init_filename not properly formated
FFmpeg
trac at avcodec.org
Wed Aug 2 15:11:09 EEST 2023
#7313: hls_fmp4_init_filename not properly formated
-------------------------------------+-------------------------------------
Reporter: Dennis | Owner: (none)
Shtatnov |
Type: defect | Status: new
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: hls | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Marco O.):
I have encountered the same problem and sorted out that it happens only
when there is just *one* variant. By giving a look at the code here
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/hlsenc.c#L3001
one can see that the %v expansion takes place only
{{{if (hls->nb_varstreams > 1)}}}
User can avoid this by simply not using the %v wildcard if there is just
one variant, but this looks to me somewhat as a loss of generality. Fix
should be easy, just turn the two ifs into
{{{if (hls->nb_varstreams > 0)}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7313#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list