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) {
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(58,78,0)
fftarget = avformat_index_get_entry (stream, keyframeidx)->timestamp;
#else
fftarget = stream->index_entries[keyframeidx].timestamp;
#endif
target = gst_ffmpeg_time_ff_to_gst (fftarget, stream->time_base);
GST_LOG_OBJECT (demux,
......
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