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

Marton Balint cus at passwd.hu
Tue Feb 6 23:36:48 EET 2024



On Tue, 6 Feb 2024, Nicolas Gaullier wrote:

>>> 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).

I don't quite see why this can't be the job of the parser. After all, that 
is what is codec specific, and that is what usually splits unaligned 
packets... Could you please elaborate on that?

Thanks,
Marton


More information about the ffmpeg-devel mailing list