Commit 8f9d3f6d authored by Dustin Brody's avatar Dustin Brody Committed by Anton Khirnov

s302m: use nondeprecated audio sample format API

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent ec6402b7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment