summaryrefslogtreecommitdiff
path: root/libavcodec/s302m.c
diff options
context:
space:
mode:
authorDustin Brody <libav@parsoma.net>2011-07-29 02:36:11 -0400
committerAnton Khirnov <anton@khirnov.net>2011-07-29 08:47:34 +0200
commit8f9d3f6d9a77be68215046fde7a3e0a12fe024f9 (patch)
tree65e965f6fac5e024fb141376a65a00da7ddbd1f8 /libavcodec/s302m.c
parentec6402b7c595c3ceed6d1b8c1b75c6aa8336e052 (diff)
s302m: use nondeprecated audio sample format API
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/s302m.c')
-rw-r--r--libavcodec/s302m.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/s302m.c b/libavcodec/s302m.c
index 2e261b612e..faaa8ed2f5 100644
--- a/libavcodec/s302m.c
+++ b/libavcodec/s302m.c
@@ -58,9 +58,9 @@ static int s302m_parse_frame_header(AVCodecContext *avctx, const uint8_t *buf,
/* Set output properties */
avctx->bits_per_coded_sample = bits;
if (bits > 16)
- avctx->sample_fmt = SAMPLE_FMT_S32;
+ avctx->sample_fmt = AV_SAMPLE_FMT_S32;
else
- avctx->sample_fmt = SAMPLE_FMT_S16;
+ avctx->sample_fmt = AV_SAMPLE_FMT_S16;
avctx->channels = channels;
avctx->sample_rate = 48000;