[FFmpeg-devel] [PATCH 1/2] avformat/mpegtsenc: fix muxing pcm-bluray
Marton Balint
cus at passwd.hu
Sun Feb 27 19:55:54 EET 2022
On Sun, 27 Feb 2022, Paul B Mahol wrote:
> On Sun, Feb 27, 2022 at 6:47 PM Marton Balint <cus at passwd.hu> wrote:
>
>>
>>
>> On Sat, 26 Feb 2022, Paul B Mahol wrote:
>>
>>> Signed-off-by: Paul B Mahol <onemda at gmail.com>
>>> ---
>>> libavformat/mpegtsenc.c | 4 ++++
>>> 1 file changed, 4 insertions(+)
>>>
>>> diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
>>> index 971b3f55d8..48cd54c770 100644
>>> --- a/libavformat/mpegtsenc.c
>>> +++ b/libavformat/mpegtsenc.c
>>> @@ -2097,6 +2097,10 @@ static int
>> mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
>>> ts_st->dvb_ac3_desc = dvb_ac3_desc;
>>> }
>>> av_free(hdr);
>>> + } else if (st->codecpar->codec_id == AV_CODEC_ID_PCM_BLURAY) {
>>> + mpegts_write_pes(s, st, buf, size, pts, dts,
>>> + pkt->flags & AV_PKT_FLAG_KEY, stream_id);
>>> + return 0;
>>> }
>>
>> This fixes what exactly?
>>
>
> -c copy for .m2ts file that have pcm_bluray audio codec.
Ok, but what happens without the patch?
Thanks,
Marton
More information about the ffmpeg-devel
mailing list