summaryrefslogtreecommitdiffstats
path: root/demux/codec_tags.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-06-21 16:56:35 +0200
committerwm4 <wm4@nowhere>2015-06-21 16:56:35 +0200
commit2b64eee8d5ed4ab781dcbf98654f028a6d7cef11 (patch)
tree64f498f7f15ddf5bd83e7e7b4dca6c1a38cb3cbe /demux/codec_tags.c
parent991af7dfb10c514a10d84f5a3e2698e646eb53d4 (diff)
downloadmpv-2b64eee8d5ed4ab781dcbf98654f028a6d7cef11.tar.bz2
mpv-2b64eee8d5ed4ab781dcbf98654f028a6d7cef11.tar.xz
demux: rename sh_stream.format to sh_stream.codec_tag
Why not. "format" sounds too misleading for the actual importance and meaning of this field.
Diffstat (limited to 'demux/codec_tags.c')
-rw-r--r--demux/codec_tags.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demux/codec_tags.c b/demux/codec_tags.c
index 9a0e9976c7..0b014276a5 100644
--- a/demux/codec_tags.c
+++ b/demux/codec_tags.c
@@ -72,11 +72,11 @@ static const char *map_audio_pcm_tag(uint32_t tag, int bits)
void mp_set_codec_from_tag(struct sh_stream *sh)
{
- sh->codec = lookup_tag(sh->type, sh->format);
+ sh->codec = lookup_tag(sh->type, sh->codec_tag);
if (sh->audio && sh->audio->bits_per_coded_sample) {
const char *codec =
- map_audio_pcm_tag(sh->format, sh->audio->bits_per_coded_sample);
+ map_audio_pcm_tag(sh->codec_tag, sh->audio->bits_per_coded_sample);
if (codec)
sh->codec = codec;
}