When I run enc265 binary with the main sample file paris_cif.yuv (or other one...) the execution stop at an assert :

`enc265: libde265/libde265/encoder/encoder-syntax.cc:200: void encode_part_mode(encoder_context*, CABAC_encoder*, PredMode, PartMode, int): Assertion 'PartMode==PART_Nx2N' failed.`

And when I remove that assert for test, the execution run into an infinite loop in :
`const enc_cb* CTBTreeMatrix::getCB(int px,int py) const`

Test is made on Ubuntu 18.04, compiled with gcc 7.5

Encoder sample crash / assert
This is a GitHub Issue
repo:libde265
owner:strukturag
Title : Encoder sample crash / assert
Issue date:

--- start body ---
When I run enc265 binary with the main sample file paris_cif.yuv (or other one...) the execution stop at an assert :

`enc265: libde265/libde265/encoder/encoder-syntax.cc:200: void encode_part_mode(encoder_context*, CABAC_encoder*, PredMode, PartMode, int): Assertion 'PartMode==PART_Nx2N' failed.`

And when I remove that assert for test, the execution run into an infinite loop in :
`const enc_cb* CTBTreeMatrix::getCB(int px,int py) const`

Test is made on Ubuntu 18.04, compiled with gcc 7.5

--- end body ---
