diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-02-16 14:59:55 +0100 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-02-22 11:37:32 +0100 |
commit | 9cbf17e9af80cb450042ebaf5e28692044b574cf (patch) | |
tree | e68e5a8380ef589db67b3502f598fef441fb7236 /libavcodec/avcodec.h | |
parent | 4217dfe87bde4fe676291e98f6cda79f9df3baf2 (diff) | |
download | ffmpeg-9cbf17e9af80cb450042ebaf5e28692044b574cf.tar.gz |
lavc: introduce av_get_pcm_codec.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 4051bd8b73..8f7566548f 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -4055,6 +4055,14 @@ void avcodec_default_free_buffers(AVCodecContext *s); */ int av_get_bits_per_sample(enum CodecID codec_id); +/** + * Return the PCM codec associated with a sample format. + * @param be endianness, 0 for little, 1 for big, + * -1 (or anything else) for native + * @return CODEC_ID_PCM_* or CODEC_ID_NONE + */ +enum CodecID av_get_pcm_codec(enum AVSampleFormat fmt, int be); + /* frame parsing */ typedef struct AVCodecParserContext { void *priv_data; |