avcodec/av1_parser: initialize avctx->pix_fmt
authorManoj Bonda <mbonda@nvidia.com>
Fri, 19 Jun 2020 07:01:22 +0000 (12:31 +0530)
committerJames Almer <jamrial@gmail.com>
Fri, 19 Jun 2020 14:05:30 +0000 (11:05 -0300)
commit23d06f606e58779d47ca9d312c570b8e64f99f9e
tree083d29d54e0fca0141bbdb0f64c90b3808509c29
parentaf6cddae1fe9cf378e961d9a2a36dd7234996ab3
avcodec/av1_parser: initialize avctx->pix_fmt

Initialize avctx->pix_fmt in av1_parser.c
AV1 Chroma format is invalid when quering using below code if no AV1 decoder
is available:

iVideoStream = av_find_best_stream(fmtc, AVMEDIA_TYPE_VIDEO, -1, -1, NULL, 0);
eChromaFormat = (AVPixelFormat)fmtc->streams[iVideoStream]->codecpar->format;

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