Ticket #6279: patchdshowguid.diff

File patchdshowguid.diff, 619 bytes (added by cehoyos, 2 years ago)
  • libavdevice/dshow.c

    diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
    index f2453e6..a23b1d9 100644
    a b static enum AVPixelFormat dshow_pixfmt(DWORD biCompression, WORD biBitCount) 
    5151                return AV_PIX_FMT_0RGB32;
    5252        }
    5353    }
     54    case 0xe436eb7b:
     55        return AV_PIX_FMT_RGB565;
     56    case 0xe436eb7c:
     57        return AV_PIX_FMT_RGB555;
     58    case 0xe436eb7d:
     59        return AV_PIX_FMT_RGB24;
     60    case 0xe436eb7e:
     61        return AV_PIX_FMT_0RGB32;
    5462    return avpriv_find_pix_fmt(avpriv_get_raw_pix_fmt_tags(), biCompression); // all others
    5563}
    5664