diff options
author | wm4 <wm4@nowhere> | 2015-01-23 15:59:06 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-23 15:59:06 +0100 |
commit | 9681d42a9427c8860f1a768a289de3679a9cd9e8 (patch) | |
tree | 87d91b0650a50253688372eca63164956d24dd6d /demux/demux_lavf.c | |
parent | a0ed62fc1d427bc02af8a2865d491ebde73ad2f0 (diff) | |
download | mpv-9681d42a9427c8860f1a768a289de3679a9cd9e8.tar.bz2 mpv-9681d42a9427c8860f1a768a289de3679a9cd9e8.tar.xz |
command: export file format as property
Repurpose demuxer->filetype for this. It used to be used to print a
human readable format description; change it to a symbolic format name
and export it as property.
Unfortunately, libavformat has its own weird conventions, which are
reflected through the new property, e.g. the .mp4 case mentioned in the
manpage.
Fixes #1504.
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r-- | demux/demux_lavf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index e1800295cc..4d84bd20d4 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -350,9 +350,7 @@ static int lavf_check_file(demuxer_t *demuxer, enum demux_check check) success: - demuxer->filetype = priv->avif->long_name; - if (!demuxer->filetype) - demuxer->filetype = priv->avif->name; + demuxer->filetype = priv->avif->name; return 0; } |