Skip to content

Commit

Permalink
[editor] Fix seek to the end when the last ref video consists of a si…
Browse files Browse the repository at this point in the history
…ngle frame
  • Loading branch information
eumagga0x2a committed Nov 7, 2019
1 parent 8a144fb commit b29132f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions avidemux/common/ADM_editor/src/ADM_edSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,9 @@ uint64_t ADM_Composer::getLastKeyFramePts(void)
ADM_warning("Cannot map the last frame in segment to reference at PTS=%s\n",ADM_us2plain(endTimeInRef));
lastRefFrameInSegment=v->_nb_video_frames;
}
int nbFrame=lastRefFrameInSegment;
if(!nbFrame) break;
if(lastRefFrameInSegment==v->_nb_video_frames) continue;

for(int frame=nbFrame-1;frame>=0;frame--)
for(int frame=lastRefFrameInSegment;frame>=0;frame--)
{
uint32_t flags;
pts=ADM_NO_PTS;
Expand Down

0 comments on commit b29132f

Please sign in to comment.