diff options
author | wm4 <wm4@nowhere> | 2016-02-15 20:34:45 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-15 20:34:45 +0100 |
commit | f2b039da77fc66119d556e575822c2b8d328cdaf (patch) | |
tree | 658de5151cc968bfeb79f222a181afac926b390b /audio/decode/dec_audio.c | |
parent | f219a48dca7dbd525c1611b1d579947a3dd9b82b (diff) | |
download | mpv-f2b039da77fc66119d556e575822c2b8d328cdaf.tar.bz2 mpv-f2b039da77fc66119d556e575822c2b8d328cdaf.tar.xz |
audio/video: expose codec info as separate field
Preparation for the timeline rewrite. The codec will be able to change,
the stream header not.
Diffstat (limited to 'audio/decode/dec_audio.c')
-rw-r--r-- | audio/decode/dec_audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/decode/dec_audio.c b/audio/decode/dec_audio.c index 5cb69dc6d1..6d5210d179 100644 --- a/audio/decode/dec_audio.c +++ b/audio/decode/dec_audio.c @@ -86,7 +86,7 @@ struct mp_decoder_list *audio_decoder_list(void) static struct mp_decoder_list *audio_select_decoders(struct dec_audio *d_audio) { struct MPOpts *opts = d_audio->opts; - const char *codec = d_audio->header->codec->codec; + const char *codec = d_audio->codec->codec; struct mp_decoder_list *list = audio_decoder_list(); struct mp_decoder_list *new = @@ -144,7 +144,7 @@ int audio_init_best_codec(struct dec_audio *d_audio) MP_VERBOSE(d_audio, "Selected audio codec: %s\n", d_audio->decoder_desc); } else { MP_ERR(d_audio, "Failed to initialize an audio decoder for codec '%s'.\n", - d_audio->header->codec->codec); + d_audio->codec->codec); } talloc_free(list); |