Skip to content

format do not have MediaFormat.KEY_FRAME_RATE,and it cause NullPointerException like  #2

@RrtoyewxXu

Description

@RrtoyewxXu

In Android/MediaDemo

 framerate = format.getInteger(MediaFormat.KEY_FRAME_RATE);

format do not have MediaFormat.KEY_FRAME_RATE,and it cause NullPointerException like


 java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
 at android.media.MediaFormat.getInteger(MediaFormat.java:524)

please tell me how to deal with it
In Android/MediaDemo

 framerate = format.getInteger(MediaFormat.KEY_FRAME_RATE);

format do not have MediaFormat.KEY_FRAME_RATE,and it cause NullPointerException like


 java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
 at android.media.MediaFormat.getInteger(MediaFormat.java:524)

please tell me how to deal with it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions