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() {
18
18
assert_eq ! ( f. properties( ) . audio_bitrate( ) , 3 ) ;
19
19
assert_eq ! ( f. properties( ) . channels( ) , 2 ) ;
20
20
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( ) ) ;
22
23
assert ! ( !f. properties( ) . is_drm_protected( ) ) ;
23
24
assert_eq ! ( f. properties( ) . codec( ) , & Mp4Codec :: AAC ) ;
24
25
}
@@ -82,7 +83,7 @@ fn test_properties_alac_without_bitrate() {
82
83
assert_eq ! ( f. properties( ) . channels( ) , 2 ) ;
83
84
assert_eq ! ( f. properties( ) . sample_rate( ) , 44100 ) ;
84
85
assert_eq ! ( f. properties( ) . bit_depth( ) , Some ( 16 ) ) ;
85
- assert_eq ! ( f. properties( ) . is_drm_protected( ) , false ) ;
86
+ assert ! ( ! f. properties( ) . is_drm_protected( ) ) ;
86
87
assert_eq ! ( f. properties( ) . codec( ) , & Mp4Codec :: ALAC ) ;
87
88
}
88
89
You can’t perform that action at this time.
0 commit comments