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>
Fri, 25 Nov 2016 21:22:07 +0000 (22:22 +0100)
commit6ad27731428c93bcb3d7df91427b66a253206042
tree8d40dbb1fc7f5fb20aba6a11187a3e9d7395dffe
parent1dc59aaf61ec547bd1272453d0265e51929ab0ef
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