diff --git a/libavformat/aiffenc.c b/libavformat/aiffenc.c index 8cdb261..78c5ae3 100644 --- a/libavformat/aiffenc.c +++ b/libavformat/aiffenc.c @@ -53,6 +53,9 @@ static int aiff_write_header(AVFormatContext *s) ffio_wfourcc(pb, aifc ? "AIFC" : "AIFF"); if (aifc) { // compressed audio + if (enc->codec_tag == MKTAG('r','a','w',' ')) + enc->bits_per_coded_sample = 8; + else enc->bits_per_coded_sample = 16; if (!enc->block_align) { av_log(s, AV_LOG_ERROR, "block align not set\n");