Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 105653
Collapse All | Expand All

(-)main/libmpdemux/demux_ty.c (-1 / +11 lines)
Lines 635-641 Link Here
635
               if( demux->audio->id == aid )
635
               if( demux->audio->id == aid )
636
               {
636
               {
637
                  ds = demux->audio;
637
                  ds = demux->audio;
638
                  if( !ds->sh ) ds->sh = demux->a_streams[ aid ];
638
                  if( !ds->sh ) {
639
                    sh_audio_t* sh_a;
640
                    ds->sh = demux->a_streams[ aid ];
641
                    sh_a = (sh_audio_t*)ds->sh;
642
                    switch(aid & 0xE0){  // 1110 0000 b  (high 3 bit: type  low 5: id)
643
                      case 0x00: sh_a->format=0x50;break; // mpeg
644
                      case 0xA0: sh_a->format=0x10001;break;  // dvd pcm
645
                      case 0x80: if((aid & 0xF8) == 0x88) sh_a->format=0x2001;//dts
646
                                  else sh_a->format=0x2000;break; // ac3
647
                    }
648
                 }
639
               }
649
               }
640
            }
650
            }
641
651

Return to bug 105653