lavf/spdifenc: Support MLP encapsulation.
authorDavid Monro <davidm@davidmonro.net>
Sun, 14 Feb 2016 17:02:22 +0000 (18:02 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 14 Feb 2016 17:02:22 +0000 (18:02 +0100)
Fixes bug 821.

Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
libavformat/spdifenc.c

index b4608a1..64c5f38 100644 (file)
@@ -463,6 +463,7 @@ static int spdif_write_header(AVFormatContext *s)
         ctx->header_info = spdif_header_aac;
         break;
     case AV_CODEC_ID_TRUEHD:
+    case AV_CODEC_ID_MLP:
         ctx->header_info = spdif_header_truehd;
         ctx->hd_buf = av_malloc(MAT_FRAME_SIZE);
         if (!ctx->hd_buf)