[FFmpeg-devel] [PATCH] Set Audio Stream Specifier to 0x04 for MPEG-1 Layer II Audio

Ali KIZIL alikizil at gmail.com
Thu Apr 21 14:43:53 CEST 2016


>From 019bfcbd781ed98aba17241ed867ab28af1f57d8 Mon Sep 17 00:00:00 2001
From: smallishzulu <alikizil at gmail.com>
Date: Thu, 21 Apr 2016 15:42:48 +0300
Subject: [PATCH] Set Audio Stream Specifier to 0x04 for MPEG-1 Layer II
Audio

---
 libavformat/mpegtsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index f4cb862..7316684 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -318,7 +318,7 @@ static int mpegts_write_pmt(AVFormatContext *s,
MpegTSService *service)
             break;
         case AV_CODEC_ID_MP2:
         case AV_CODEC_ID_MP3:
-            stream_type = STREAM_TYPE_AUDIO_MPEG1;
+            stream_type = STREAM_TYPE_AUDIO_MPEG2;
             break;
         case AV_CODEC_ID_AAC:
             stream_type = (ts->flags & MPEGTS_FLAG_AAC_LATM)
--
1.9.1

The contents of this e-mail are confidential to the addressee and are
intended solely for the recipients use. If you are not the addressee, you
have received this e-mail in error. Any disclosure, copying, distribution
or action taken in reliance on it is prohibited and may be unlawful. Please
note that any opinions expressed in this e-mail are those of the author
personally and not your business name who do not accept responsibility for
the contents of the message.

To conserve our resources for the future please reconsider before printing
this e-mail.


More information about the ffmpeg-devel mailing list