summaryrefslogtreecommitdiff
path: root/apps/codecs/libwma
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libwma')
-rw-r--r--apps/codecs/libwma/wmadeci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/codecs/libwma/wmadeci.c b/apps/codecs/libwma/wmadeci.c
index 3a4e70d..3361325 100644
--- a/apps/codecs/libwma/wmadeci.c
+++ b/apps/codecs/libwma/wmadeci.c
@@ -550,8 +550,11 @@ int wma_decode_init(WMADecodeContext* s, asf_waveformatex_t *wfx)
if (wfx->codec_id == ASF_CODEC_ID_WMAV1){
s->version = 1;
- }else{
+ }else if (wfx->codec_id == ASF_CODEC_ID_WMAV2 ){
s->version = 2;
+ }else{
+ /*one of those other wma flavors that don't have GPLed decoders */
+ return -1;
}
/* extract flag infos */