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:59:51 +0000 (00:59 +0200)
commit08eef74a39d73bec80d4a12f0eaca6a3602a2024
tree4825f35a9624f3347851274296f7cbfbf5f7bfc5
parent7fefd776682ae9a138d808f8e91e8c74574187db
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>
(cherry picked from commit 987690799dd86433bf98b897aaa4c8d93ade646d)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c