avcodec/hevcdec: set the SEI parameters early on the AVCodecContext
authorSteve Lhomme <robux4@ycbcr.xyz>
Mon, 27 May 2019 14:06:47 +0000 (16:06 +0200)
committerJames Almer <jamrial@gmail.com>
Sun, 14 Jul 2019 16:04:46 +0000 (13:04 -0300)
commitf2ad6238e4c0e99e2fc131ee14c586e87b045680
treebb31a2fe93275db0e01b129638a9e4c1ba908bc9
parent6882427841e66ecd081fce31b452814f0daaaba6
avcodec/hevcdec: set the SEI parameters early on the AVCodecContext

It's better to do it before the buffers are actually created. At least in VLC
we currently don't support changing some parameters dynamically easily so we
don't use the information if it comes after the buffer are created.

Co-authored-by: James Almer <jamrial@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/hevcdec.c