avcodec/avs3_parser: pixel format should be native endian
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
1731eba20d
commit
2a189d44b5
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ static void parse_avs3_nal_units(AVCodecParserContext *s, const uint8_t *buf,
|
|||
if (sample_precision == 1) {
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV420P;
|
||||
} else if (sample_precision == 2) {
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV420P10LE;
|
||||
avctx->pix_fmt = AV_PIX_FMT_YUV420P10;
|
||||
} else {
|
||||
avctx->pix_fmt = AV_PIX_FMT_NONE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue