flvdec: require need_context_update when changing codec id
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 4 Nov 2016 20:37:13 +0000 (21:37 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 26 Nov 2016 23:28:07 +0000 (00:28 +0100)
commitd0f8741a5a29e6381894fe5eacbeb9145a965b6c
tree8e8c3696e59b79724580ed461b7363cdb75eda7a
parent9b506280dd9b95b944676316ae3f8ea5605a7a10
flvdec: require need_context_update when changing codec id

Otherwise the codec context and codecpar might disagree on the codec id,
triggering asserts in av_parser_parse2.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 98b3a7979f2ff64cacfba4d8925faa28fc657c51)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavformat/flvdec.c