mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 19:34:14 +00:00
Cosmetics: simplify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26906 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
158b5133ff
commit
fba4b13c9b
@ -265,10 +265,9 @@ sh_audio_t* new_sh_audio_aid(demuxer_t *demuxer,int id,int aid){
|
||||
if(demuxer->a_streams[id]){
|
||||
mp_msg(MSGT_DEMUXER,MSGL_WARN,MSGTR_AudioStreamRedefined,id);
|
||||
} else {
|
||||
sh_audio_t *sh;
|
||||
sh_audio_t *sh = calloc(1, sizeof(sh_audio_t));
|
||||
mp_msg(MSGT_DEMUXER,MSGL_V,MSGTR_FoundAudioStream,id);
|
||||
demuxer->a_streams[id]=calloc(1, sizeof(sh_audio_t));
|
||||
sh = demuxer->a_streams[id];
|
||||
demuxer->a_streams[id] = sh;
|
||||
// set some defaults
|
||||
sh->samplesize=2;
|
||||
sh->sample_format=AF_FORMAT_S16_NE;
|
||||
|
Loading…
Reference in New Issue
Block a user