summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/mpc_info.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-07-24 09:01:47 +0300
committerUoti Urpala <uau@mplayer2.org>2012-07-24 09:01:47 +0300
commit5f3c3f8c32d20405a2caf7de66aa1ea7f513d4d2 (patch)
tree44a68334360af69b358dafc0cecf773ca5871ecc /libmpcodecs/mpc_info.h
parent65b24e46a1c2f26688458cf16a11733e96da0f22 (diff)
downloadmpv-5f3c3f8c32d20405a2caf7de66aa1ea7f513d4d2.tar.bz2
mpv-5f3c3f8c32d20405a2caf7de66aa1ea7f513d4d2.tar.xz
video, audio: use lavc decoders without codecs.conf entries
Add support for using libavcodec decoders that do not have entries in codecs.conf. This is currently only used with demux_lavf, and the codec selection is based on codec_id returned by libavformat. Also modify codec-related terminal output somewhat to make it use information from libavcodec and avoid excessively long default output. The new any-lavc-codec support is implemented with codecs.conf entries that invoke vd_ffmpeg/ad_ffmpeg without directly specifying any libavcodec codec name. In this mode, the decoders now instead select the libavcodec codec based on codec_id previously set by demux_lavf (if any). These new "generic" codecs.conf entries specify "status buggy", so that they're tried after any specific entries with higher-priority status. Add new directive "anyinput" to codecs.conf syntax. This means the entry will always match regardless of fourcc. This is used for the above new codecs.conf entries (so the driver always gets to decide whether to accept the input, and will fail init() if it can't find a suitable codec in libavcodec). Remove parsing support for the obsolete codecs.conf directive "cpuflags". This directive has not had any effect and has not been used in default codecs.conf since many years ago. Shorten codec-related terminal output. When using libavcodec decoders, show the libavcodec long_name field rather than codecs.conf "info" field as the name of the codec. Stop showing the codecs.conf entry name and "vfm/afm" name by default, as these are rarely needed; they're now in verbose output only. Show "VIDEO:" line at VO initialization rather than at demuxer open. This didn't really belong in demuxer code; the new location may show more accurate values (known after decoder has been opened) and works right if video track is changed after initial demuxer open. The vd.c changes (primarily done for terminal output changes) remove round-to-even behavior from code setting dimensions based on aspect ratio. I hope nothing depended on this; at least the even values were not consistently guaranteed anyway, as the rounding code did not run if the video file did not specify a nonzero aspect value.
Diffstat (limited to 'libmpcodecs/mpc_info.h')
-rw-r--r--libmpcodecs/mpc_info.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpcodecs/mpc_info.h b/libmpcodecs/mpc_info.h
index 45139947cb..de1631cad8 100644
--- a/libmpcodecs/mpc_info.h
+++ b/libmpcodecs/mpc_info.h
@@ -31,6 +31,7 @@ struct mp_codec_info
const char *author;
/* any additional comments */
const char *comment;
+ const char *print_name;
};
#define CONTROL_OK 1