diff options
Diffstat (limited to 'codecs/ex_lpc10.h')
-rw-r--r-- | codecs/ex_lpc10.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/codecs/ex_lpc10.h b/codecs/ex_lpc10.h index 9c2ded88b..a36e06add 100644 --- a/codecs/ex_lpc10.h +++ b/codecs/ex_lpc10.h @@ -15,7 +15,6 @@ static struct ast_frame *lpc10_sample(void) { static struct ast_frame f = { .frametype = AST_FRAME_VOICE, - .subclass.codec = AST_FORMAT_LPC10, .datalen = sizeof(ex_lpc10), /* All frames are 22 ms long (maybe a little more -- why did he choose LPC10_SAMPLES_PER_FRAME sample frames anyway?? */ @@ -26,5 +25,7 @@ static struct ast_frame *lpc10_sample(void) .data.ptr = ex_lpc10, }; + ast_format_set(&f.subclass.format, AST_FORMAT_LPC10, 0); + return &f; } |