avformat/pcmdec: audio/L16 should be in network byte order by default (rfc 2586)
authorIgor Derzhavin <igor.derzhavin@gmail.com>
Thu, 22 Nov 2018 07:39:57 +0000 (10:39 +0300)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 24 Nov 2018 23:24:58 +0000 (00:24 +0100)
libavformat/pcmdec.c

index 0d146a4..8530dbc 100644 (file)
@@ -142,10 +142,10 @@ PCMDEF(s24le, "PCM signed 24-bit little-endian",
        NULL, AV_CODEC_ID_PCM_S24LE)
 
 PCMDEF(s16be, "PCM signed 16-bit big-endian",
-       AV_NE("sw", NULL), AV_CODEC_ID_PCM_S16BE)
+       AV_NE("sw", NULL), AV_CODEC_ID_PCM_S16BE, .mime_type = "audio/L16")
 
 PCMDEF(s16le, "PCM signed 16-bit little-endian",
-       AV_NE(NULL, "sw"), AV_CODEC_ID_PCM_S16LE, .mime_type = "audio/L16",)
+       AV_NE(NULL, "sw"), AV_CODEC_ID_PCM_S16LE)
 
 PCMDEF(s8, "PCM signed 8-bit",
        "sb", AV_CODEC_ID_PCM_S8)