Commit 07b43c72 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

avdemux: fix build with FFmpeg 4.4

Direct access to avstream->index_entries was removed
in favour of the newly added avformat_index_get_entry()
and friends.

Fixes gstreamer/gst-libav#85

Part-of: <gstreamer/gst-libav!127>
parent ad7f7c87
Pipeline #300043 passed with stages
in 24 minutes and 12 seconds
......@@ -483,7 +483,11 @@ gst_ffmpegdemux_do_seek (GstFFMpegDemux * demux, GstSegment * segment)
GST_LOG_OBJECT (demux, "keyframeidx: %d", keyframeidx);
if (keyframeidx >= 0) {
fftarget = avformat_index_get_entry (stream, keyframeidx)->timestamp;
fftarget = stream->index_entries[keyframeidx].timestamp;
target = gst_ffmpeg_time_ff_to_gst (fftarget, stream->time_base);
Supports Markdown
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