diff --git a/codecs/codec_g722.c b/codecs/codec_g722.c
index 7dd2744c3d3754c2e9aa25c8136700bc58236adb..02f4720cdafecdbdd77d02f9f57084270efb6520 100644
--- a/codecs/codec_g722.c
+++ b/codecs/codec_g722.c
@@ -151,10 +151,10 @@ static struct ast_frame *g722tolin16_sample(void)
 	static struct ast_frame f = {
 		.frametype = AST_FRAME_VOICE,
 		.subclass = AST_FORMAT_G722,
-		.datalen = sizeof(slin_g722_ex),
-		.samples = sizeof(slin_g722_ex) * 2,
+		.datalen = sizeof(g722_slin_ex),
+		.samples = sizeof(g722_slin_ex) * 2,
 		.src = __PRETTY_FUNCTION__,
-		.data = slin_g722_ex,
+		.data = g722_slin_ex,
 	};
 
 	return &f;