Closed Bug 1320026 Opened 8 years ago Closed 8 years ago

Support 'tenc' box for rust mp4 parser

Categories

(Core :: Audio/Video: Playback, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: ayang, Assigned: ayang)

References

Details

Attachments

(1 file)

Blocks: 1161350
See Also: → 1313556
Assignee: nobody → ayang
Comment on attachment 8817959 [details]
Bug 1320026 - support crypto info in rust mp4 parser.

https://reviewboard.mozilla.org/r/98144/#review98478

::: media/libstagefright/binding/DecoderData.cpp:197
(Diff revision 1)
>  #ifdef MOZ_RUST_MP4PARSE
> +static void
> +UpdateTrackProtectedInfo(mozilla::TrackInfo& aConfig,
> +                         const mp4parser_sinf_info& aSinf)
> +{
> +  if (!!aSinf.is_encrypted) {

!= 0 is clearer in this case, I think

::: media/libstagefright/binding/MP4Metadata.cpp:307
(Diff revision 1)
>        MOZ_DIAGNOSTIC_ASSERT(audioRust->mRate == audio->mRate);
>        MOZ_DIAGNOSTIC_ASSERT(audioRust->mChannels == audio->mChannels);
>        MOZ_DIAGNOSTIC_ASSERT(audioRust->mBitDepth == audio->mBitDepth);
>        // TODO: These fields aren't implemented in the Rust demuxer yet.
>        //MOZ_DIAGNOSTIC_ASSERT(audioRust->mProfile != audio->mProfile);
> -      //MOZ_DIAGNOSTIC_ASSERT(audioRust->mExtendedProfile != audio->mExtendedProfile);
> +      MOZ_DIAGNOSTIC_ASSERT(audioRust->mExtendedProfile != audio->mExtendedProfile);

Oops, this should be ==, please fix the commented bit above too
Attachment #8817959 - Flags: review?(kinetik) → review+
Pushed by ayang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3664eb1f7737
support crypto info in rust mp4 parser. r=kinetik
https://hg.mozilla.org/mozilla-central/rev/3664eb1f7737
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: