summaryrefslogtreecommitdiff
path: root/apps/codecs/libwma/wmadeci.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libwma/wmadeci.c')
-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 3a4e70dc15..3361325887 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)
550 550
551 if (wfx->codec_id == ASF_CODEC_ID_WMAV1){ 551 if (wfx->codec_id == ASF_CODEC_ID_WMAV1){
552 s->version = 1; 552 s->version = 1;
553 }else{ 553 }else if (wfx->codec_id == ASF_CODEC_ID_WMAV2 ){
554 s->version = 2; 554 s->version = 2;
555 }else{
556 /*one of those other wma flavors that don't have GPLed decoders */
557 return -1;
555 } 558 }
556 559
557 /* extract flag infos */ 560 /* extract flag infos */