Ticket #9007: ffmpeg-vpcc-hwaccel-bit-depth.patch

File ffmpeg-vpcc-hwaccel-bit-depth.patch, 411 bytes (added by kepstin, 6 years ago)

ffmpeg-vpcc-hwaccel-bit-depth.patch

  • libavformat/vpcc.c

    diff --git a/libavformat/vpcc.c b/libavformat/vpcc.c
    index e0b7f288a6..3807679cbb 100644
    a b static int get_bit_depth(AVFormatContext *s, enum AVPixelFormat pixel_format)  
    5959               pixel_format);
    6060        return -1;
    6161    }
     62    if (desc->flags & AV_PIX_FMT_FLAG_HWACCEL) {
     63        return -1;
     64    }
     65
    6266    return desc->comp[0].depth;
    6367}
    6468