mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
Set codec_tag in dshow device, needed to distinguish between YUV and YVU.
Fixes ticket #3447.
This commit is contained in:
parent
742d860103
commit
6208bb965d
@ -773,6 +773,7 @@ dshow_add_device(AVFormatContext *avctx,
|
||||
codec->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||
codec->width = bih->biWidth;
|
||||
codec->height = bih->biHeight;
|
||||
codec->codec_tag = bih->biCompression;
|
||||
codec->pix_fmt = dshow_pixfmt(bih->biCompression, bih->biBitCount);
|
||||
if (bih->biCompression == MKTAG('H', 'D', 'Y', 'C')) {
|
||||
av_log(avctx, AV_LOG_DEBUG, "attempt to use full range for HDYC...\n");
|
||||
|
Loading…
Reference in New Issue
Block a user