@@ -309,7 +309,7 @@ fn public_audio_tenc() {
309
309
assert_eq ! ( a. codec_type, mp4:: CodecType :: EncryptedAudio ) ;
310
310
match a. protection_info . iter ( ) . find ( |sinf| sinf. tenc . is_some ( ) ) {
311
311
Some ( ref p) => {
312
- assert_eq ! ( p. code_name , "mp4a" ) ;
312
+ assert_eq ! ( p. original_format . value , * b "mp4a") ;
313
313
if let Some ( ref schm) = p. scheme_type {
314
314
assert_eq ! ( schm. scheme_type. value, * b"cenc" ) ;
315
315
} else {
@@ -368,7 +368,7 @@ fn public_video_cenc() {
368
368
assert_eq ! ( v. codec_type, mp4:: CodecType :: EncryptedVideo ) ;
369
369
match v. protection_info . iter ( ) . find ( |sinf| sinf. tenc . is_some ( ) ) {
370
370
Some ( ref p) => {
371
- assert_eq ! ( p. code_name , "avc1" ) ;
371
+ assert_eq ! ( p. original_format . value , * b "avc1") ;
372
372
if let Some ( ref schm) = p. scheme_type {
373
373
assert_eq ! ( schm. scheme_type. value, * b"cenc" ) ;
374
374
} else {
@@ -441,7 +441,7 @@ fn public_audio_cbcs() {
441
441
mp4:: SampleEntry :: Audio ( ref a) => {
442
442
if let Some ( p) = a. protection_info . iter ( ) . find ( |sinf| sinf. tenc . is_some ( ) ) {
443
443
found_encrypted_sample_description = true ;
444
- assert_eq ! ( p. code_name , "mp4a" ) ;
444
+ assert_eq ! ( p. original_format . value , * b "mp4a") ;
445
445
if let Some ( ref schm) = p. scheme_type {
446
446
assert_eq ! ( schm. scheme_type. value, * b"cbcs" ) ;
447
447
} else {
@@ -526,7 +526,7 @@ fn public_video_cbcs() {
526
526
assert_eq ! ( v. height, 300 ) ;
527
527
if let Some ( p) = v. protection_info . iter ( ) . find ( |sinf| sinf. tenc . is_some ( ) ) {
528
528
found_encrypted_sample_description = true ;
529
- assert_eq ! ( p. code_name , "avc1" ) ;
529
+ assert_eq ! ( p. original_format . value , * b "avc1") ;
530
530
if let Some ( ref schm) = p. scheme_type {
531
531
assert_eq ! ( schm. scheme_type. value, * b"cbcs" ) ;
532
532
} else {
0 commit comments