On Sun, 27 Feb 2022, Paul B Mahol wrote:

On Sun, Feb 27, 2022 at 6:47 PM Marton Balint <c...@passwd.hu> wrote:



On Sat, 26 Feb 2022, Paul B Mahol wrote:

Signed-off-by: Paul B Mahol <one...@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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to