avcodec/h264_slice: set the SEI parameters early on the AVCodecContext
authorSteve Lhomme <robux4@ycbcr.xyz>
Wed, 29 May 2019 13:16:14 +0000 (15:16 +0200)
committerJames Almer <jamrial@gmail.com>
Sun, 14 Jul 2019 16:04:46 +0000 (13:04 -0300)
commit8788dd67b851ec652bdd83bb5d5afb12101b7c6f
tree5922f2a1f635f1a6fd62aca4359afca7890362fd
parentf2ad6238e4c0e99e2fc131ee14c586e87b045680
avcodec/h264_slice: 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/h264_slice.c