diff options
Diffstat (limited to 'apps/codecs/libwmapro/wmaprodec.c')
-rw-r--r-- | apps/codecs/libwmapro/wmaprodec.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/apps/codecs/libwmapro/wmaprodec.c b/apps/codecs/libwmapro/wmaprodec.c index 82f1b3623b..88d317d5f6 100644 --- a/apps/codecs/libwmapro/wmaprodec.c +++ b/apps/codecs/libwmapro/wmaprodec.c | |||
@@ -94,6 +94,14 @@ | |||
94 | #include "dsputil.h" | 94 | #include "dsputil.h" |
95 | #include "wma.h" | 95 | #include "wma.h" |
96 | 96 | ||
97 | /* Some defines to make it compile */ | ||
98 | #define AVERROR_INVALIDDATA -1 | ||
99 | #define AVERROR_PATCHWELCOME -2 | ||
100 | #ifndef M_PI | ||
101 | #define M_PI 3.14159265358979323846 /* pi */ | ||
102 | #endif | ||
103 | #define av_log_ask_for_sample(...) | ||
104 | |||
97 | /** current decoder limitations */ | 105 | /** current decoder limitations */ |
98 | #define WMAPRO_MAX_CHANNELS 8 ///< max number of handled channels | 106 | #define WMAPRO_MAX_CHANNELS 8 ///< max number of handled channels |
99 | #define MAX_SUBFRAMES 32 ///< max number of subframes per channel | 107 | #define MAX_SUBFRAMES 32 ///< max number of subframes per channel |
@@ -444,9 +452,10 @@ static av_cold int decode_init(AVCodecContext *avctx) | |||
444 | /** calculate sine values for the decorrelation matrix */ | 452 | /** calculate sine values for the decorrelation matrix */ |
445 | for (i = 0; i < 33; i++) | 453 | for (i = 0; i < 33; i++) |
446 | sin64[i] = sin(i*M_PI / 64.0); | 454 | sin64[i] = sin(i*M_PI / 64.0); |
447 | 455 | #if 0 | |
448 | if (avctx->debug & FF_DEBUG_BITSTREAM) | 456 | if (avctx->debug & FF_DEBUG_BITSTREAM) |
449 | dump_context(s); | 457 | dump_context(s); |
458 | #endif | ||
450 | 459 | ||
451 | avctx->channel_layout = channel_mask; | 460 | avctx->channel_layout = channel_mask; |
452 | return 0; | 461 | return 0; |
@@ -1559,7 +1568,7 @@ static void flush(AVCodecContext *avctx) | |||
1559 | s->packet_loss = 1; | 1568 | s->packet_loss = 1; |
1560 | } | 1569 | } |
1561 | 1570 | ||
1562 | 1571 | #if 0 | |
1563 | /** | 1572 | /** |
1564 | *@brief wmapro decoder | 1573 | *@brief wmapro decoder |
1565 | */ | 1574 | */ |
@@ -1576,3 +1585,10 @@ AVCodec wmapro_decoder = { | |||
1576 | .flush= flush, | 1585 | .flush= flush, |
1577 | .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 9 Professional"), | 1586 | .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 9 Professional"), |
1578 | }; | 1587 | }; |
1588 | #endif | ||
1589 | |||
1590 | int main(void) | ||
1591 | { | ||
1592 | /* possible test program - just here now to ensure linking is done properly */ | ||
1593 | return 0; | ||
1594 | } | ||