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)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 25 Aug 2016 01:29:36 +0000 (03:29 +0200)
commitfabc1c9e567df696c87b557bc156e92420b26fa0
treec4cf13d79982ef9d51aae9874f847bc69690389a
parent0ad4d4198a40f3907b77390d525bf6fd7868538f
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.

(cherry picked from commit c3e9b098e12b8932693361625d4a69bc30583d9a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h2645_parse.c