aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-11-23 11:22:57 +0100
committerAnton Khirnov <anton@khirnov.net>2021-12-04 14:08:17 +0100
commitab3ef54c8c6a47576a07ecdaacbc0b0096374f4a (patch)
tree93ac5198dd958a20ed7c41e26a414b333e2a8422 /fftools/ffmpeg.h
parent425889396137451ae30288c84122e28532b71596 (diff)
downloadffmpeg-ab3ef54c8c6a47576a07ecdaacbc0b0096374f4a.tar.gz
ffmpeg: only copy bits_per_sample from decoder when it remains valid
I.e. when the only filters that are applied do not modify the frame data.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index c14eed5643..cc7ba9bdca 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -287,6 +287,9 @@ typedef struct FilterGraph {
AVFilterGraph *graph;
int reconfiguration;
+ // true when the filtergraph contains only meta filters
+ // that do not modify the frame data
+ int is_meta;
InputFilter **inputs;
int nb_inputs;