media: Add H264 profile extraction support
Without the ffmpeg decoder configured, libavformat is unable to get the codec profile and chromium ffmpeg wrapper code choose some defaults. This will mess up the decode scenarios where non-ffmpeg decoders like vaapi are in use. Fortunately, we can still get hold of the ffmpeg's AVStream extradata param which should contain the H264 AVCDecoderConfigurationRecord (ISO/IEC 14496-15). So we use internal parser for extracting profile information from this AVCDecoderConfigurationRecord. BUG=784610 TEST=media_unittests:FFmpegCommonTest.VerifyH264Profile Change-Id: Id67c7026eefb5bb73e6c5fbbab7a362cb4553ab1 Reviewed-on: https://chromium-review.googlesource.com/c/1292605 Commit-Queue: Chrome Cunningham <chcunningham@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Reviewed-by:
Chrome Cunningham <chcunningham@chromium.org> Cr-Commit-Position: refs/heads/master@{#607769}
Showing
Please register or sign in to comment