mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
vc1: Return stream format information from parser
This commit is contained in:
parent
5e965582d5
commit
4df6605da7
@ -115,6 +115,14 @@ static void vc1_extract_header(AVCodecParserContext *s, AVCodecContext *avctx,
|
||||
}
|
||||
if (avctx->framerate.num)
|
||||
avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1}));
|
||||
s->format = vpc->v.chromaformat == 1 ? AV_PIX_FMT_YUV420P
|
||||
: AV_PIX_FMT_NONE;
|
||||
if (avctx->width && avctx->height) {
|
||||
s->width = avctx->width;
|
||||
s->height = avctx->height;
|
||||
s->coded_width = FFALIGN(avctx->coded_width, 16);
|
||||
s->coded_height = FFALIGN(avctx->coded_height, 16);
|
||||
}
|
||||
}
|
||||
|
||||
static int vc1_parse(AVCodecParserContext *s,
|
||||
|
Loading…
Reference in New Issue
Block a user