path: root/core/cfg-mplayer.h
diff options
authorwm4 <wm4@nowhere>2012-12-10 18:52:06 +0100
committerwm4 <wm4@nowhere>2012-12-11 00:37:55 +0100
commitfdbf43705581ee676d3e1d22210def3e21ce8fb3 (patch)
tree55552d37157f98715ea91d14f48b970fd39988e1 /core/cfg-mplayer.h
parent74ab902dea669bb3d6d3769d8a96640ca538a535 (diff)
core: allow disabling display of "album art" in audio files
ffmpeg pretends that image attachments (such as contained in ID3v2 metadata) are video streams. It injects the attached pictures as packets into the packet stream received with av_read_frame(). Add the --audio-display option to allow configuring whether attached pictures should be displayed. The default behavior doesn't change (images are displayed). Identify video streams, that are actually image attachments, with "[P]" in the terminal output. Modify the default stream selection such that real video streams are preferred over attached pictures. (This is just for robustness; I do not know of any samples where images are added before actual video streams and could lead to bad default stream selection with the old code.)
Diffstat (limited to 'core/cfg-mplayer.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index 6534672223..762c13a2bb 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -394,6 +394,9 @@ const m_option_t common_opts[] = {
OPT_STRINGLIST("alang", audio_lang, 0),
OPT_STRINGLIST("slang", sub_lang, 0),
+ OPT_CHOICE("audio-display", audio_display, 0,
+ ({"no", 0}, {"attachment", 1})),
OPT_STRING("quvi-format", quvi_format, 0),
{ "rawaudio", (void *)&demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},