mirror of https://github.com/mpv-player/mpv
vd_lavc: remove unused field
This commit is contained in:
parent
269c1e1f41
commit
2963d84a9b
|
@ -27,7 +27,6 @@ typedef struct lavc_ctx {
|
||||||
AVFrame *pic;
|
AVFrame *pic;
|
||||||
struct vd_lavc_hwdec *hwdec;
|
struct vd_lavc_hwdec *hwdec;
|
||||||
enum AVPixelFormat pix_fmt;
|
enum AVPixelFormat pix_fmt;
|
||||||
int do_hw_dr1;
|
|
||||||
int best_csp;
|
int best_csp;
|
||||||
enum AVDiscard skip_frame;
|
enum AVDiscard skip_frame;
|
||||||
const char *software_fallback_decoder;
|
const char *software_fallback_decoder;
|
||||||
|
|
|
@ -309,7 +309,6 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
|
||||||
|
|
||||||
ctx->hwdec_info = &vd->hwdec_info;
|
ctx->hwdec_info = &vd->hwdec_info;
|
||||||
|
|
||||||
ctx->do_hw_dr1 = 0;
|
|
||||||
ctx->pix_fmt = AV_PIX_FMT_NONE;
|
ctx->pix_fmt = AV_PIX_FMT_NONE;
|
||||||
ctx->hwdec = hwdec;
|
ctx->hwdec = hwdec;
|
||||||
ctx->hwdec_fmt = 0;
|
ctx->hwdec_fmt = 0;
|
||||||
|
@ -323,7 +322,6 @@ static void init_avctx(struct dec_video *vd, const char *decoder,
|
||||||
ctx->pic = av_frame_alloc();
|
ctx->pic = av_frame_alloc();
|
||||||
|
|
||||||
if (ctx->hwdec) {
|
if (ctx->hwdec) {
|
||||||
ctx->do_hw_dr1 = true;
|
|
||||||
avctx->thread_count = 1;
|
avctx->thread_count = 1;
|
||||||
avctx->get_format = get_format_hwdec;
|
avctx->get_format = get_format_hwdec;
|
||||||
avctx->get_buffer2 = get_buffer2_hwdec;
|
avctx->get_buffer2 = get_buffer2_hwdec;
|
||||||
|
|
Loading…
Reference in New Issue