mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-28 05:30:34 +00:00
Pass codec pixel format list to get_format, if present, fix vdpau decoding
Originally committed as revision 23396 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
879c9d1a63
commit
9ad7dfc110
@ -1850,6 +1850,8 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
|
||||
h->sps.num_units_in_tick, den, 1<<30);
|
||||
}
|
||||
s->avctx->pix_fmt = s->avctx->get_format(s->avctx,
|
||||
s->avctx->codec->pix_fmts ?
|
||||
s->avctx->codec->pix_fmts :
|
||||
s->avctx->color_range == AVCOL_RANGE_JPEG ?
|
||||
hwaccel_pixfmt_list_h264_jpeg_420 :
|
||||
ff_hwaccel_pixfmt_list_420);
|
||||
|
Loading…
Reference in New Issue
Block a user