summaryrefslogtreecommitdiffstats
path: root/video/decode/lavc.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r--video/decode/lavc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h
index 90b2d6a886..76b7ac7883 100644
--- a/video/decode/lavc.h
+++ b/video/decode/lavc.h
@@ -18,6 +18,7 @@ typedef struct lavc_ctx {
enum AVPixelFormat pix_fmt;
int best_csp;
enum AVDiscard skip_frame;
+ bool flushing;
const char *software_fallback_decoder;
bool hwdec_failed;
bool hwdec_notified;
@@ -34,6 +35,7 @@ typedef struct lavc_ctx {
int hwdec_profile;
bool hwdec_request_reinit;
+ int hwdec_fail_count;
} vd_ffmpeg_ctx;
struct vd_lavc_hwdec {
@@ -55,7 +57,7 @@ struct vd_lavc_hwdec {
void (*lock)(struct lavc_ctx *ctx);
void (*unlock)(struct lavc_ctx *ctx);
// Optional; if a special hardware decoder is needed (instead of "hwaccel").
- const char *(*get_codec)(struct lavc_ctx *ctx);
+ const char *(*get_codec)(struct lavc_ctx *ctx, const char *codec);
};
enum {