avformat/utils: Update codec_id before using it in the parser init
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 8 Oct 2016 15:49:10 +0000 (17:49 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 9 Oct 2016 22:58:16 +0000 (00:58 +0200)
commit987690799dd86433bf98b897aaa4c8d93ade646d
tree304b19823d059340fd9db2e4e898833bb772bb05
parent47d2be3056fa43ac936e5e40f0ce83df45d3be36
avformat/utils: Update codec_id before using it in the parser init

Fixes assertion failure

Fixes: input.avi

Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c