Commit 0c5fe2f0 authored by Derek Buitenhuis's avatar Derek Buitenhuis Committed by Michael Niedermayer

FATE/bprint: Convert a VLA to a normal array

Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
Reviewed-by: 's avatarNicolas George <nicolas.george@normalesup.org>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 23e9e5c7
......@@ -21,6 +21,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "avassert.h"
#include "bprint.h"
#include "common.h"
#include "error.h"
......@@ -189,7 +190,10 @@ int av_bprint_finalize(AVBPrint *buf, char **ret_str)
static void bprint_pascal(AVBPrint *b, unsigned size)
{
unsigned p[size + 1], i, j;
unsigned i, j;
unsigned p[42];
av_assert0(size < FF_ARRAY_ELEMS(p));
p[0] = 1;
av_bprintf(b, "%8d\n", 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment