[RELAND] media: Add H264 profile extraction support
Originally reviewed-on: https://chromium-review.googlesource.com/c/1292605 No change to the files in the reland. Added new web test. The issue that caused the revert is addressed in dependent CLs (crbug/911823). -- begin original commit msg -- 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,911823 TEST=media_unittests:FFmpegCommonTest.VerifyH264Profile TBR=tguilbert@chromium.org Change-Id: I021fb2c92e56846824a9e362d8f3ec8665724fb5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1362468Reviewed-by:Chrome Cunningham <chcunningham@chromium.org> Reviewed-by:
Thomas Guilbert <tguilbert@chromium.org> Commit-Queue: Chrome Cunningham <chcunningham@chromium.org> Cr-Commit-Position: refs/heads/master@{#637915}
Showing
File added
Please register or sign in to comment