Revision fbdcdaee libavformat/wv.c
libavformat/wv.c | ||
---|---|---|
23 | 23 |
#include "avformat.h" |
24 | 24 |
#include "apetag.h" |
25 | 25 |
#include "id3v1.h" |
26 |
#include "libavcore/audioconvert.h" |
|
26 | 27 |
|
27 | 28 |
// specs say that maximum block size is 1Mb |
28 | 29 |
#define WV_BLOCK_LIMIT 1047576 |
... | ... | |
111 | 112 |
//parse flags |
112 | 113 |
bpp = ((wc->flags & 3) + 1) << 3; |
113 | 114 |
chan = 1 + !(wc->flags & WV_MONO); |
114 |
chmask = wc->flags & WV_MONO ? CH_LAYOUT_MONO : CH_LAYOUT_STEREO;
|
|
115 |
chmask = wc->flags & WV_MONO ? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
|
|
115 | 116 |
rate = wv_rates[(wc->flags >> 23) & 0xF]; |
116 | 117 |
wc->multichannel = !!((wc->flags & WV_SINGLE_BLOCK) != WV_SINGLE_BLOCK); |
117 | 118 |
if(wc->multichannel){ |
Also available in: Unified diff