Index: media/video/ffmpeg_video_decode_engine.cc |
diff --git a/media/video/ffmpeg_video_decode_engine.cc b/media/video/ffmpeg_video_decode_engine.cc |
index a2009f4e3b9b810b6dddd612335dc71fef23c398..f52cf1684a9e56e81d744be3b42ae79b4494b8f8 100644 |
--- a/media/video/ffmpeg_video_decode_engine.cc |
+++ b/media/video/ffmpeg_video_decode_engine.cc |
@@ -331,6 +331,14 @@ void FFmpegVideoDecodeEngine::Seek() { |
event_handler_->OnSeekComplete(); |
} |
+AVCodecContext* FFmpegVideoDecodeEngine::codec_context() const { |
+ return codec_context_; |
+} |
+ |
+void FFmpegVideoDecodeEngine::SetCodecContextForTest(AVCodecContext* context) { |
+ codec_context_ = context; |
+} |
+ |
void FFmpegVideoDecodeEngine::ReadInput() { |
DCHECK_EQ(output_eos_reached_, false); |
pending_input_buffers_++; |