diff options
Diffstat (limited to 'codecs/ex_adpcm.h')
-rw-r--r-- | codecs/ex_adpcm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codecs/ex_adpcm.h b/codecs/ex_adpcm.h index 8a1a5eea9..96b7c51f8 100644 --- a/codecs/ex_adpcm.h +++ b/codecs/ex_adpcm.h @@ -19,7 +19,6 @@ static struct ast_frame *adpcm_sample(void) { static struct ast_frame f = { .frametype = AST_FRAME_VOICE, - .subclass.codec = AST_FORMAT_ADPCM, .datalen = sizeof(ex_adpcm), .samples = ARRAY_LEN(ex_adpcm) * 2, .mallocd = 0, @@ -27,6 +26,7 @@ static struct ast_frame *adpcm_sample(void) .src = __PRETTY_FUNCTION__, .data.ptr = ex_adpcm, }; + ast_format_set(&f.subclass.format, AST_FORMAT_ADPCM, 0); return &f; } |