[media] vpx_video_decoder: dynamically update natural size
This changes the behavior implicit resizing of for VP8/9 video. By implicit, we mean streams where the dimensions change without a new MSE init segment that explicitly describes the new size. Prior to this CL, we took whatever resolution was specified by the container metadata and scaled any later differing resolution into an element of that original size. Many of our decoders worked this way before https://chromium-review.googlesource.com/c/chromium/src/+/1026992/, which shifted the consensus is to allow dynamic resize. This CL makes the libVPX wrapper consistent with those. When the size changes we will update videoWidth and videoHeight and fire a 'resize' event. Bug: 992235 Change-Id: I5bca7a68709594500e6ec9b4e107531b41e20925 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1828226 Commit-Queue: Dan Sanders <sandersd@chromium.org> Reviewed-by:Dan Sanders <sandersd@chromium.org> Cr-Commit-Position: refs/heads/master@{#701373}
Showing
Please register or sign in to comment