|
|
@ -31,12 +31,12 @@ |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdlib.h> |
|
|
|
#include <stdlib.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "libavcodec/avcodec.h" |
|
|
|
#include <libavcodec/avcodec.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "libavutil/channel_layout.h" |
|
|
|
#include <libavutil/channel_layout.h> |
|
|
|
#include "libavutil/common.h" |
|
|
|
#include <libavutil/common.h> |
|
|
|
#include "libavutil/frame.h" |
|
|
|
#include <libavutil/frame.h> |
|
|
|
#include "libavutil/samplefmt.h" |
|
|
|
#include <libavutil/samplefmt.h> |
|
|
|
|
|
|
|
|
|
|
|
/* check that a given sample format is supported by the encoder */ |
|
|
|
/* check that a given sample format is supported by the encoder */ |
|
|
|
static int check_sample_fmt(const AVCodec *codec, enum AVSampleFormat sample_fmt) |
|
|
|
static int check_sample_fmt(const AVCodec *codec, enum AVSampleFormat sample_fmt) |
|
|
|