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>
Thu, 24 Nov 2016 23:35:46 +0000 (00:35 +0100)
commit98b3a7979f2ff64cacfba4d8925faa28fc657c51
tree4a8d9bc6b6e7b7e73da85eb1a49c4f30e920e03b
parent06f94149c61fd6beff6fcd0fd7ccc34b77c948dc
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>
libavformat/flvdec.c