Commit e4af35fa authored by watk's avatar watk Committed by Commit bot

Revert of FFmpeg roll for M43. (patchset #2 id:20001 of...

Revert of FFmpeg roll for M43. (patchset #2 id:20001 of https://codereview.chromium.org/1032543004/)

Reason for revert:
Failed to compile:

http://build.chromium.org/p/chromium.gpu/builders/GPU%20Mac%20Builder/builds/30642

Original issue's description:
> FFmpeg roll for M43.
>
> Update FFmpegDemuxer::OnFindStreamInfoDone with the new
> AVFormatContext layout.
>
> BUG=465940
>
> Committed: https://crrev.com/02c707cdd098e97dd78c3ff2858576dcbcaa9082
> Cr-Commit-Position: refs/heads/master@{#322688}

TBR=dalecurtis@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=465940

Review URL: https://codereview.chromium.org/1046493002

Cr-Commit-Position: refs/heads/master@{#322690}
parent 8e752353
......@@ -207,7 +207,7 @@ deps = {
Var('chromium_git') + '/chromium/deps/libvpx.git' + '@' + Var('libvpx_revision'),
'src/third_party/ffmpeg':
Var('chromium_git') + '/chromium/third_party/ffmpeg.git' + '@' + 'f776b2743801160f7bf4377294b9a227f648fb21',
Var('chromium_git') + '/chromium/third_party/ffmpeg.git' + '@' + 'b3dc5aa44575049edf6b24e34578487dfaade6a4',
'src/third_party/libjingle/source/talk':
Var('chromium_git') + '/external/webrtc/trunk/talk.git' + '@' + '70cbec23cde10c3b81e591a58f153e83b1fcb74c',
......
......@@ -32,7 +32,6 @@ extern "C" {
MSVC_PUSH_DISABLE_WARNING(4244);
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavformat/internal.h>
#include <libavformat/avio.h>
#include <libavutil/avutil.h>
#include <libavutil/imgutils.h>
......
......@@ -838,11 +838,10 @@ void FFmpegDemuxer::OnFindStreamInfoDone(const PipelineStatusCB& status_cb,
// If no estimate is found, the stream entry will be kInfiniteDuration().
std::vector<base::TimeDelta> start_time_estimates(format_context->nb_streams,
kInfiniteDuration());
const AVFormatInternal* internal = format_context->internal;
if (internal && internal->packet_buffer &&
if (format_context->packet_buffer &&
format_context->start_time != static_cast<int64>(AV_NOPTS_VALUE)) {
struct AVPacketList* packet_buffer = internal->packet_buffer;
while (packet_buffer != internal->packet_buffer_end) {
struct AVPacketList* packet_buffer = format_context->packet_buffer;
while (packet_buffer != format_context->packet_buffer_end) {
DCHECK_LT(static_cast<size_t>(packet_buffer->pkt.stream_index),
start_time_estimates.size());
const AVStream* stream =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment