projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec6402b
)
s302m: use nondeprecated audio sample format API
author
Dustin Brody
<libav@parsoma.net>
Fri, 29 Jul 2011 06:36:11 +0000
(
02:36
-0400)
committer
Anton 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
patch
|
blob
|
history
diff --git
a/libavcodec/s302m.c
b/libavcodec/s302m.c
index
2e261b6
..
faaa8ed
100644
(file)
--- 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;