avcodec: extract video_format_t color setting as a function
commit439efd8084605755f4916df5f8f0ca740b4e7f6f
authorZhao Zhili <quinkblack@foxmail.com>
Thu, 8 Oct 2020 12:08:00 +0000 (8 14:08 +0200)
committerSteve Lhomme <robux4@ycbcr.xyz>
Mon, 2 Nov 2020 09:07:56 +0000 (2 10:07 +0100)
tree381cf0bfe03b8d64b5e1a3d5a7ef3b3850711622
parenta59d7c3ce629c3ec1968e519efba710118cac0d6
avcodec: extract video_format_t color setting as a function

Now the APIs for color information conversion are symmetric.

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
modules/codec/avcodec/avcommon.h
modules/codec/avcodec/video.c