Skip to content
Snippets Groups Projects
Commit a05a6378 authored by Justin Ruggles's avatar Justin Ruggles
Browse files

daud: set channel layout

Update FATE reference due to WAVE channel mask now being set correctly.
parent 0d09a584
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
* License along with Libav; if not, write to the Free Software * License along with Libav; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "libavutil/channel_layout.h"
#include "avformat.h" #include "avformat.h"
static int daud_header(AVFormatContext *s) { static int daud_header(AVFormatContext *s) {
...@@ -28,6 +30,7 @@ static int daud_header(AVFormatContext *s) { ...@@ -28,6 +30,7 @@ static int daud_header(AVFormatContext *s) {
st->codec->codec_id = AV_CODEC_ID_PCM_S24DAUD; st->codec->codec_id = AV_CODEC_ID_PCM_S24DAUD;
st->codec->codec_tag = MKTAG('d', 'a', 'u', 'd'); st->codec->codec_tag = MKTAG('d', 'a', 'u', 'd');
st->codec->channels = 6; st->codec->channels = 6;
st->codec->channel_layout = AV_CH_LAYOUT_5POINT1;
st->codec->sample_rate = 96000; st->codec->sample_rate = 96000;
st->codec->bit_rate = 3 * 6 * 96000 * 8; st->codec->bit_rate = 3 * 6 * 96000 * 8;
st->codec->block_align = 3 * 6; st->codec->block_align = 3 * 6;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment