[FFmpeg-devel] [RFC]lavf/mpegtsenc: Allow muxing jpeg2000

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Aug 17 17:10:44 CEST 2015


Hi!

John Högberg has no objections against this patch but I don't know 
how to test (except with FFmpeg).

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 45bab1c..76a1cc9 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -314,6 +314,9 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
         case AV_CODEC_ID_TRUEHD:
             stream_type = STREAM_TYPE_AUDIO_TRUEHD;
             break;
+        case AV_CODEC_ID_JPEG2000:
+            stream_type = 0x21;
+            break;
         default:
             stream_type = STREAM_TYPE_PRIVATE_DATA;
             break;


More information about the ffmpeg-devel mailing list