mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 21:45:10 +00:00
mmf: set channel layout
This commit is contained in:
parent
87199d34db
commit
f24b0b1b6c
@ -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"
|
||||
#include "internal.h"
|
||||
#include "avio_internal.h"
|
||||
@ -249,6 +251,7 @@ static int mmf_read_header(AVFormatContext *s)
|
||||
st->codec->codec_id = AV_CODEC_ID_ADPCM_YAMAHA;
|
||||
st->codec->sample_rate = rate;
|
||||
st->codec->channels = 1;
|
||||
st->codec->channel_layout = AV_CH_LAYOUT_MONO;
|
||||
st->codec->bits_per_coded_sample = 4;
|
||||
st->codec->bit_rate = st->codec->sample_rate * st->codec->bits_per_coded_sample;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user