Instead use one on the stack to avoid pulling in all of libavcodec. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>