File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ fn test_properties_aac() {
1818 assert_eq ! ( f. properties( ) . audio_bitrate( ) , 3 ) ;
1919 assert_eq ! ( f. properties( ) . channels( ) , 2 ) ;
2020 assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
21- assert_eq ! ( f. properties( ) . bit_depth( ) , Some ( 16 ) ) ;
21+ // NOTE: TagLib reports 16, but the stream is a lossy codec. We ignore it in this case.
22+ assert ! ( f. properties( ) . bit_depth( ) . is_none( ) ) ;
2223 assert ! ( !f. properties( ) . is_drm_protected( ) ) ;
2324 assert_eq ! ( f. properties( ) . codec( ) , & Mp4Codec :: AAC ) ;
2425}
@@ -82,7 +83,7 @@ fn test_properties_alac_without_bitrate() {
8283 assert_eq ! ( f. properties( ) . channels( ) , 2 ) ;
8384 assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
8485 assert_eq ! ( f. properties( ) . bit_depth( ) , Some ( 16 ) ) ;
85- assert_eq ! ( f. properties( ) . is_drm_protected( ) , false ) ;
86+ assert ! ( ! f. properties( ) . is_drm_protected( ) ) ;
8687 assert_eq ! ( f. properties( ) . codec( ) , & Mp4Codec :: ALAC ) ;
8788}
8889
You can’t perform that action at this time.
0 commit comments