summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-29 14:07:08 +0100
committerwm4 <wm4@nowhere>2013-12-29 14:19:22 +0100
commit392856ed4d86c71ecfb9b8036351ba2acd825a32 (patch)
tree60983b1bfb29a0ee6838364d068c6e52ae719761 /options
parent15f38b89eeb7cbb72a84dabc19b706ede455399c (diff)
downloadmpv-392856ed4d86c71ecfb9b8036351ba2acd825a32.tar.bz2
mpv-392856ed4d86c71ecfb9b8036351ba2acd825a32.tar.xz
vd_lavc: by default, output all frames, even corrupted ones
Set the flag CODEC_FLAG_OUTPUT_CORRUPT by default. Note that there is also CODEC_FLAG2_SHOW_ALL, which is older, but this seems to be ffmpeg only. Note that whether you want this enabled depends on the user. Some might prefer that only good frames are output, while others want the decoder to try as hard as possible to output _anything_. Since mplayer/mpv is rather the kind of player that tries hard instead of being "clever", set the new default to override libavcodec's default. A nice way to test this is switching video tracks. Since mpv doesn't wait for the next key frame, it'll start feeding the decoder with a packet from the middle of the stream.
Diffstat (limited to 'options')
-rw-r--r--options/options.c1
-rw-r--r--options/options.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index f53f33245e..a92ace3ec0 100644
--- a/options/options.c
+++ b/options/options.c
@@ -755,6 +755,7 @@ const struct MPOpts mp_default_opts = {
.allow_mimetype = 1,
},
.lavc_param = {
+ .show_all = 1,
.check_hw_profile = 1,
},
.input = {
diff --git a/options/options.h b/options/options.h
index 6e44dc838c..b4366a2f2e 100644
--- a/options/options.h
+++ b/options/options.h
@@ -228,6 +228,7 @@ typedef struct MPOpts {
struct lavc_param {
int fast;
+ int show_all;
char *skip_loop_filter_str;
char *skip_idct_str;
char *skip_frame_str;