Merge "asterisk.c: When astcanary dies on linux, reset priority on all threads."
[asterisk/asterisk.git] / codecs / ex_alaw.h
index 66a904c..e8629be 100644 (file)
@@ -24,7 +24,6 @@ static struct ast_frame *alaw_sample(void)
 {
        static struct ast_frame f = {
                .frametype = AST_FRAME_VOICE,
-               .subclass = AST_FORMAT_ALAW,
                .datalen = sizeof(ex_alaw),
                .samples = ARRAY_LEN(ex_alaw),
                .mallocd = 0,
@@ -32,6 +31,6 @@ static struct ast_frame *alaw_sample(void)
                .src = __PRETTY_FUNCTION__,
                .data.ptr = ex_alaw,
        };
-
+       f.subclass.format = ast_format_alaw;
        return &f;
 }