On Tue, Jun 8, 2021 at 5:01 PM Michael Niedermayer <[email protected]>
wrote:

> On Tue, Jun 08, 2021 at 01:03:56AM +0200, Diederick Niehorster wrote:
> > Enabled discovering a DirectShow device's color range, space, primaries,
> transfer characteristics and chroma location, if the device exposes that
> information. Sets them in the stream's codecpars.
> >
> > Signed-off-by: Diederick Niehorster <[email protected]>
> > Co-authored-by: Valerii Zapodovnikov <[email protected]>
> > ---
> >  libavdevice/dshow.c | 231 +++++++++++++++++++++++++++++++++++++++++++-
> >  1 file changed, 230 insertions(+), 1 deletion(-)
>
> seems to break build on mingw64 here
>
> CC      libavdevice/dshow.o
> src/libavdevice/dshow.c:58:44: error: unknown type name
> ‘DXVA_ExtendedFormat’
>  static enum AVColorRange dshow_color_range(DXVA_ExtendedFormat* fmt_info)
>                                             ^~~~~~~~~~~~~~~~~~~
>

Oh no! Seems all those are not defined in the MinGW headers. Luckily there
is the equivalent (see
https://docs.microsoft.com/en-us/windows/win32/medfound/extended-color-information#color-space-in-media-types)
DXVA2_ExtendedFormat struct which is defined in the MinGW headers. So i
have switched to using that (well documented whats going on), seems to work
fine.

Cheers,
Dee
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to