Michael Niedermayer
59b8c2a4e6
doc/examples/encode_audio: Favor a sample rate close to 44khz instead of the maximum sample rate
This is an example, people will copy and use this. The maximum supported is quite
unreasonable as a default choice
Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Clément Bœsch
944e5ce3ec
doc/examples/{de,en}code_audio: fix includes
Consistent with other examples.
8 years ago
Clément Bœsch
9bed10afb8
doc/examples/encode_audio: add missing return
8 years ago
Anton Khirnov
f76698e759
examples/encode_audio: use the AVFrame API for allocating the data
It is simpler and more efficient.
8 years ago
Anton Khirnov
c00a11ab38
examples/encode_audio: constify AVCodec instances
8 years ago
Anton Khirnov
40aaa8dadf
examples/avcodec: split audio encoding into a separate example
The four examples (audio/video encoding/decoding) are completely
independent so it makes little sense to have them all in one file.
8 years ago