aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad_pcm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmpcodecs/ad_pcm.c b/libmpcodecs/ad_pcm.c
index 6ddae6afeb..c265dfcd56 100644
--- a/libmpcodecs/ad_pcm.c
+++ b/libmpcodecs/ad_pcm.c
@@ -21,6 +21,8 @@
#include <unistd.h>
#include <stdbool.h>
+#include <libavutil/common.h>
+
#include "talloc.h"
#include "config.h"
#include "ad_internal.h"
@@ -119,6 +121,10 @@ static int init(sh_audio_t * sh_audio)
sh_audio->sample_format = AF_FORMAT_S32_LE;
sh_audio->samplesize = 4;
break;
+ case MKTAG('M', 'P', 'a', 'f'):
+ sh_audio->sample_format = h->wFormatTag;
+ sh_audio->samplesize = (af_fmt2bits(sh_audio->sample_format) + 7) / 8;
+ break;
default:
if (sh_audio->samplesize != 2)
sh_audio->sample_format = AF_FORMAT_U8;