diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-02 23:54:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-03 21:23:07 +0100 |
| commit | befb56d6c8452cb6600c482de5739913601a110a (patch) | |
| tree | 386ae427970a5d63fa1f463c1aa4dd7c2f643801 /src/lib/ffmpeg_decoder.cc | |
| parent | 7d1bbe772c7a14c827600b0740ae0ae0fcf05d5d (diff) | |
Don't redefine a variable.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index ea961a894..4df224ed9 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -569,12 +569,12 @@ FFmpegDecoder::decode_and_process_video_packet (AVPacket* packet) auto images = graph->process (_frame); - for (auto const& i: images) { + for (auto const& j: images) { - auto image = i.first; + auto image = j.first; - if (i.second != AV_NOPTS_VALUE) { - double const pts = i.second * av_q2d(_format_context->streams[_video_stream.get()]->time_base) + _pts_offset.seconds(); + if (j.second != AV_NOPTS_VALUE) { + double const pts = j.second * av_q2d(_format_context->streams[_video_stream.get()]->time_base) + _pts_offset.seconds(); video->emit ( film(), |
