s302m: use nondeprecated audio sample format API
authorDustin Brody <libav@parsoma.net>
Fri, 29 Jul 2011 06:36:11 +0000 (02:36 -0400)
committerAnton Khirnov <anton@khirnov.net>
Fri, 29 Jul 2011 06:47:34 +0000 (08:47 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/s302m.c

index 2e261b6..faaa8ed 100644 (file)
@@ -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;