Skip to content

Commit

Permalink
daud: set channel layout
Browse files Browse the repository at this point in the history
Update FATE reference due to WAVE channel mask now being set correctly.
  • Loading branch information
justinruggles committed Nov 12, 2012
1 parent 0d09a58 commit a05a637
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libavformat/daud.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
* License along with Libav; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "libavutil/channel_layout.h"
#include "avformat.h"

static int daud_header(AVFormatContext *s) {
Expand All @@ -28,6 +30,7 @@ static int daud_header(AVFormatContext *s) {
st->codec->codec_id = AV_CODEC_ID_PCM_S24DAUD;
st->codec->codec_tag = MKTAG('d', 'a', 'u', 'd');
st->codec->channels = 6;
st->codec->channel_layout = AV_CH_LAYOUT_5POINT1;
st->codec->sample_rate = 96000;
st->codec->bit_rate = 3 * 6 * 96000 * 8;
st->codec->block_align = 3 * 6;
Expand Down

0 comments on commit a05a637

Please sign in to comment.