diff options
Diffstat (limited to 'codecs/ex_gsm.h')
-rw-r--r-- | codecs/ex_gsm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codecs/ex_gsm.h b/codecs/ex_gsm.h index 0e4cffab0..8f8b4f9fe 100644 --- a/codecs/ex_gsm.h +++ b/codecs/ex_gsm.h @@ -18,7 +18,6 @@ static struct ast_frame *gsm_sample(void) { static struct ast_frame f = { .frametype = AST_FRAME_VOICE, - .subclass.codec = AST_FORMAT_GSM, .datalen = sizeof(ex_gsm), /* All frames are 20 ms long */ .samples = GSM_SAMPLES, @@ -28,5 +27,6 @@ static struct ast_frame *gsm_sample(void) .data.ptr = ex_gsm, }; + ast_format_set(&f.subclass.format, AST_FORMAT_GSM, 0); return &f; } |