@@ -309,7 +309,7 @@ fn public_audio_tenc() {
309309 assert_eq ! ( a. codec_type, mp4:: CodecType :: EncryptedAudio ) ;
310310 match a. protection_info . iter ( ) . find ( |sinf| sinf. tenc . is_some ( ) ) {
311311 Some ( ref p) => {
312- assert_eq ! ( p. code_name , "mp4a" ) ;
312+ assert_eq ! ( p. original_format . value , * b "mp4a") ;
313313 if let Some ( ref schm) = p. scheme_type {
314314 assert_eq ! ( schm. scheme_type. value, * b"cenc" ) ;
315315 } else {
@@ -368,7 +368,7 @@ fn public_video_cenc() {
368368 assert_eq ! ( v. codec_type, mp4:: CodecType :: EncryptedVideo ) ;
369369 match v. protection_info . iter ( ) . find ( |sinf| sinf. tenc . is_some ( ) ) {
370370 Some ( ref p) => {
371- assert_eq ! ( p. code_name , "avc1" ) ;
371+ assert_eq ! ( p. original_format . value , * b "avc1") ;
372372 if let Some ( ref schm) = p. scheme_type {
373373 assert_eq ! ( schm. scheme_type. value, * b"cenc" ) ;
374374 } else {
@@ -441,7 +441,7 @@ fn public_audio_cbcs() {
441441 mp4:: SampleEntry :: Audio ( ref a) => {
442442 if let Some ( p) = a. protection_info . iter ( ) . find ( |sinf| sinf. tenc . is_some ( ) ) {
443443 found_encrypted_sample_description = true ;
444- assert_eq ! ( p. code_name , "mp4a" ) ;
444+ assert_eq ! ( p. original_format . value , * b "mp4a") ;
445445 if let Some ( ref schm) = p. scheme_type {
446446 assert_eq ! ( schm. scheme_type. value, * b"cbcs" ) ;
447447 } else {
@@ -526,7 +526,7 @@ fn public_video_cbcs() {
526526 assert_eq ! ( v. height, 300 ) ;
527527 if let Some ( p) = v. protection_info . iter ( ) . find ( |sinf| sinf. tenc . is_some ( ) ) {
528528 found_encrypted_sample_description = true ;
529- assert_eq ! ( p. code_name , "avc1" ) ;
529+ assert_eq ! ( p. original_format . value , * b "avc1") ;
530530 if let Some ( ref schm) = p. scheme_type {
531531 assert_eq ! ( schm. scheme_type. value, * b"cbcs" ) ;
532532 } else {
0 commit comments