Merge "res_pjsip_mwi: Turn some NOTICEs and WARNINGs into debug 1s."
[asterisk/asterisk.git] / codecs / ex_ilbc.h
index c72b1f2..3a79b09 100644 (file)
@@ -19,7 +19,6 @@ static struct ast_frame *ilbc_sample(void)
 {
        static struct ast_frame f = {
                .frametype = AST_FRAME_VOICE,
-               .subclass = AST_FORMAT_ILBC,
                .datalen = sizeof(ex_ilbc),
                /* All frames are 30 ms long */
                .samples = ILBC_SAMPLES,
@@ -29,5 +28,7 @@ static struct ast_frame *ilbc_sample(void)
                .data.ptr = ex_ilbc,
        };
 
+       f.subclass.format = ast_format_ilbc;
+
        return &f;
 }