[FFmpeg-devel] [PATCH 0/1] avformat/mpegts: fix first NAL start code splited in two different packets

Nicolas Gaullier nicolas.gaullier at cji.paris
Tue Feb 6 13:38:59 EET 2024


>> If you think it would be better to have a related trac ticket, just 
>> tell me, I can do this of course.
>> Nicolas
>>
>
>I think it's ok. I wish it were less ugly but I guess it can't be.
>
>Kieran

Yes, of course! I am really really sorry.
Personally, I have not found a better solution as an mpegts fix, but if anyone has a better code, of course my version can be dropped.
(I have not looked for a possible fix in the upper ffmpeg demux/parser layers, but it would be certainly even more ugly, if possible at all).

Again, sorry. There are some implementers who take the standards very crude to "optimize" for every little byte unreasonably.
Fact is, here, the standard should not have allowed this!
Nicolas


More information about the ffmpeg-devel mailing list