h2645_parse: only read avc length code at the correct position
authorHendrik Leppkes <h.leppkes@gmail.com>
Thu, 7 Jul 2016 18:18:26 +0000 (20:18 +0200)
committerHendrik Leppkes <h.leppkes@gmail.com>
Fri, 8 Jul 2016 13:20:16 +0000 (15:20 +0200)
commitc3e9b098e12b8932693361625d4a69bc30583d9a
treeb316c3c862c40149fddb71b13470263aed2acc59
parentb450b82514e9eaf5bc59759e814bfc2b8e2d864d
h2645_parse: only read avc length code at the correct position

Reading it from any other position would result in a wrong size being
read, instead fallback to the re-sync mechanic in the else clause.
libavcodec/h2645_parse.c