Pass on explicit color space for VP8 and H264
Bug: webtc:8651 Change-Id: I9d478e7123e915bff858d725d6008fcfeeb0779d Reviewed-on: https://webrtc-review.googlesource.com/c/114424 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Johannes Kron <kron@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26044}
This commit is contained in:

committed by
Commit Bot

parent
0fcf4b1dbd
commit
a1bec23f6c
@ -300,7 +300,10 @@ int32_t H264DecoderImpl::Decode(const EncodedImage& input_image,
|
||||
RTC_CHECK_EQ(av_frame_->data[kUPlaneIndex], i420_buffer->DataU());
|
||||
RTC_CHECK_EQ(av_frame_->data[kVPlaneIndex], i420_buffer->DataV());
|
||||
|
||||
const ColorSpace& color_space = ExtractH264ColorSpace(av_context_.get());
|
||||
// Pass on color space from input frame if explicitly specified.
|
||||
const ColorSpace& color_space =
|
||||
input_frame->color_space() ? *input_frame->color_space()
|
||||
: ExtractH264ColorSpace(av_context_.get());
|
||||
VideoFrame decoded_frame =
|
||||
VideoFrame::Builder()
|
||||
.set_video_frame_buffer(input_frame->video_frame_buffer())
|
||||
|
Reference in New Issue
Block a user