You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
yop: set channel layout
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
* 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 "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
#include "avformat.h"
|
#include "avformat.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
@@ -74,6 +75,7 @@ static int yop_read_header(AVFormatContext *s)
|
|||||||
audio_dec->codec_type = AVMEDIA_TYPE_AUDIO;
|
audio_dec->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||||
audio_dec->codec_id = AV_CODEC_ID_ADPCM_IMA_APC;
|
audio_dec->codec_id = AV_CODEC_ID_ADPCM_IMA_APC;
|
||||||
audio_dec->channels = 1;
|
audio_dec->channels = 1;
|
||||||
|
audio_dec->channels = AV_CH_LAYOUT_MONO;
|
||||||
audio_dec->sample_rate = 22050;
|
audio_dec->sample_rate = 22050;
|
||||||
|
|
||||||
// Video
|
// Video
|
||||||
|
Reference in New Issue
Block a user