Mercurial > mplayer.hg
comparison libmpdemux/demux_avi.c @ 36811:92dd1764392a
demuxers: remove pointless sh->ds assignments.
The new_sh_* functions have been fixed a long time
ago to do this.
author | reimar |
---|---|
date | Sun, 23 Feb 2014 18:14:44 +0000 |
parents | 1c991ec0e6da |
children |
comparison
equal
deleted
inserted
replaced
36810:576724706b75 | 36811:92dd1764392a |
---|---|
539 } | 539 } |
540 if(!try_ds_fill(demuxer, d_video)){ | 540 if(!try_ds_fill(demuxer, d_video)){ |
541 mp_msg(MSGT_DEMUX,MSGL_ERR,"AVI: " MSGTR_MissingVideoStreamBug); | 541 mp_msg(MSGT_DEMUX,MSGL_ERR,"AVI: " MSGTR_MissingVideoStreamBug); |
542 return NULL; | 542 return NULL; |
543 } | 543 } |
544 sh_video=d_video->sh;sh_video->ds=d_video; | 544 sh_video=d_video->sh; |
545 if(d_audio->id!=-2){ | 545 if(d_audio->id!=-2){ |
546 mp_msg(MSGT_DEMUX,MSGL_V,"AVI: Searching for audio stream (id:%d)\n",d_audio->id); | 546 mp_msg(MSGT_DEMUX,MSGL_V,"AVI: Searching for audio stream (id:%d)\n",d_audio->id); |
547 if(!priv->audio_streams || !try_ds_fill(demuxer, d_audio)){ | 547 if(!priv->audio_streams || !try_ds_fill(demuxer, d_audio)){ |
548 mp_msg(MSGT_DEMUX,MSGL_INFO,"AVI: " MSGTR_MissingAudioStream); | 548 mp_msg(MSGT_DEMUX,MSGL_INFO,"AVI: " MSGTR_MissingAudioStream); |
549 d_audio->sh=sh_audio=NULL; | 549 d_audio->sh=sh_audio=NULL; |
550 } else { | 550 } else { |
551 sh_audio=d_audio->sh;sh_audio->ds=d_audio; | 551 sh_audio=d_audio->sh; |
552 } | 552 } |
553 } | 553 } |
554 | 554 |
555 // calculating audio/video bitrate: | 555 // calculating audio/video bitrate: |
556 if(priv->idx_size>0){ | 556 if(priv->idx_size>0){ |