Skip to content

Commit

Permalink
Revert of FFmpeg roll for M43. (patchset chromium#2 id:20001 of https…
Browse files Browse the repository at this point in the history
…://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}
  • Loading branch information
watk authored and Commit bot committed Mar 28, 2015
1 parent 8e75235 commit e4af35f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 0 additions & 1 deletion media/ffmpeg/ffmpeg_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
7 changes: 3 additions & 4 deletions media/filters/ffmpeg_demuxer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit e4af35f

Please sign in to comment.