diff --git a/main/frame.c b/main/frame.c index 8e96b19e1fd518a943df5bcd15d32cb02b558807..84a2b0a5aad12d4a2ce7a789568c126a1e26c3e4 100644 --- a/main/frame.c +++ b/main/frame.c @@ -476,6 +476,8 @@ struct ast_frame *ast_frdup(const struct ast_frame *f) if (out->datalen) { out->data.ptr = buf + sizeof(*out) + AST_FRIENDLY_OFFSET; memcpy(out->data.ptr, f->data.ptr, out->datalen); + } else { + out->data.uint32 = f->data.uint32; } if (srclen > 0) { /* This may seem a little strange, but it's to avoid a gcc (4.2.4) compiler warning */