diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-12 11:04:40 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-12 11:04:40 +0000 |
commit | 5d6e4c160a4a0d71c17e8428123027c747ff0fb3 (patch) | |
tree | d3132b2b615fe19f3f4b5ad43b095c076320c780 /libavcodec/utils.c | |
parent | 09f47fa44ebf3f18651397517b49e6f8c5a0e374 (diff) | |
download | ffmpeg-5d6e4c160a4a0d71c17e8428123027c747ff0fb3.tar.gz |
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index f07e5c90c9..38751400b9 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -923,7 +923,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) } av_strlcat(buf, ", ", buf_size); avcodec_get_channel_layout_string(buf + strlen(buf), buf_size - strlen(buf), enc->channels, enc->channel_layout); - if (enc->sample_fmt != SAMPLE_FMT_NONE) { + if (enc->sample_fmt != AV_SAMPLE_FMT_NONE) { snprintf(buf + strlen(buf), buf_size - strlen(buf), ", %s", av_get_sample_fmt_name(enc->sample_fmt)); } @@ -1067,7 +1067,7 @@ int av_get_bits_per_sample(enum CodecID codec_id){ } #if FF_API_OLD_SAMPLE_FMT -int av_get_bits_per_sample_format(enum SampleFormat sample_fmt) { +int av_get_bits_per_sample_format(enum AVSampleFormat sample_fmt) { return av_get_bits_per_sample_fmt(sample_fmt); } #endif |