bbc / turingcodec

Source code for the Turing codec, an HEVC software encoder optimised for fast encoding of large resolution video content
http://turingcodec.org/
GNU General Public License v2.0
154 stars 39 forks source link

turing.exe decode does not honor -- frames CL switch #20

Open mosdav opened 6 years ago

mosdav commented 6 years ago

How to reproduce : turing.exe decode --frames 1 c:\foo.hevc Observed behavior: decoding is keep going even after 1 frame/picture has been decoded

It seems there is no call to StateDecode::stop() (I guess it should be called once in a while during the decode loop)

bool stop() const
{
    return this->maxPictures != 0 && this->n == this->maxPictures;
}