Opened 5 years ago
#929 new defect
Encoder hangs when too few frames in source file
Reported by: | karlsharman | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | VTM | Version: | VTM-8.0 |
Keywords: | Cc: | ksuehring, XiangLi, fbossen, jvet@… |
Description
If the encoder is unable to read a frame from the source video file due to EOF, it hangs (goes in an endless loop).
A quick way to demonstrate this is:
./bin/EncoderAppStatic -c cfg/encoder_intra_vtm.cfg -c cfg/per-sequence/BasketballPass.cfg -fs 499 -f 3 --TemporalSubsampleRatio=1
Possible fix might be:
EncApp.cpp:1100:encodePrep(...)
Change
return keepDoing;
to
return keepDoing && !eos;
EncLib.cpp:799:encode(...)
Add
if (!m_iNumPicRcvd) { return false; }
to the start of the function.
EncLib.cpp:926:encode(...)
Add
if (!m_iNumPicRcvd) { return false; }
to the start of the function.
Note: See TracTickets for help on using tickets.