diff --git a/modules/video_coding/codecs/h264/h264_color_space.h b/modules/video_coding/codecs/h264/h264_color_space.h index 392ccaf563..5a93575184 100644 --- a/modules/video_coding/codecs/h264/h264_color_space.h +++ b/modules/video_coding/codecs/h264/h264_color_space.h @@ -20,12 +20,12 @@ #error "See: bugs.webrtc.org/9213#c13." #endif -#include "api/video/color_space.h" - extern "C" { -#include "third_party/ffmpeg/libavcodec/avcodec.h" +#include } // extern "C" +#include "api/video/color_space.h" + namespace webrtc { // Helper class for extracting color space information from H264 stream. diff --git a/modules/video_coding/codecs/h264/h264_decoder_impl.cc b/modules/video_coding/codecs/h264/h264_decoder_impl.cc index 127b70931b..f02caa18ef 100644 --- a/modules/video_coding/codecs/h264/h264_decoder_impl.cc +++ b/modules/video_coding/codecs/h264/h264_decoder_impl.cc @@ -16,16 +16,16 @@ #include "modules/video_coding/codecs/h264/h264_decoder_impl.h" +extern "C" { +#include +#include +#include +} // extern "C" + #include #include #include -extern "C" { -#include "third_party/ffmpeg/libavcodec/avcodec.h" -#include "third_party/ffmpeg/libavformat/avformat.h" -#include "third_party/ffmpeg/libavutil/imgutils.h" -} // extern "C" - #include "api/video/color_space.h" #include "api/video/i010_buffer.h" #include "api/video/i420_buffer.h" diff --git a/modules/video_coding/codecs/h264/h264_decoder_impl.h b/modules/video_coding/codecs/h264/h264_decoder_impl.h index 97d091cf4b..e9da6a7a0d 100644 --- a/modules/video_coding/codecs/h264/h264_decoder_impl.h +++ b/modules/video_coding/codecs/h264/h264_decoder_impl.h @@ -21,10 +21,6 @@ #error "See: bugs.webrtc.org/9213#c13." #endif -#include - -#include "modules/video_coding/codecs/h264/include/h264.h" - // CAVEAT: According to ffmpeg docs for avcodec_send_packet, ffmpeg requires a // few extra padding bytes after the end of input. And in addition, docs for // AV_INPUT_BUFFER_PADDING_SIZE says "If the first 23 bits of the additional @@ -40,11 +36,14 @@ // passed to ffmpeg. extern "C" { -#include "third_party/ffmpeg/libavcodec/avcodec.h" +#include } // extern "C" +#include + #include "common_video/h264/h264_bitstream_parser.h" #include "common_video/include/video_frame_buffer_pool.h" +#include "modules/video_coding/codecs/h264/include/h264.h" namespace webrtc {