Skip to content

Commit

Permalink
[editor/seektoTime] Set lastDecodedPts despite the wanted image being…
Browse files Browse the repository at this point in the history
… found in the cache
  • Loading branch information
eumagga0x2a committed Mar 20, 2018
1 parent 82c3293 commit a84c359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avidemux/common/ADM_editor/src/ADM_edRenderInternal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ bool ADM_Composer::seektoTime(uint32_t ref,uint64_t timeToSeek,bool dontdecode)
ADMImage *image=cache->getByPts(timeToSeek);
if(image)
{
vid->lastReadPts=timeToSeek;
vid->lastDecodedPts=vid->lastReadPts=timeToSeek;
ADM_info("Image found in cache, pts=%" PRIu64" ms\n",timeToSeek/1000);
endOfStream=false;
return true;
Expand Down

0 comments on commit a84c359

Please sign in to comment.