avformat/flvdec: move set bit_rate from parse AMF OBJECT to
authorSteven Liu <lq@chinaffmpeg.org>
Sat, 26 Nov 2016 00:56:18 +0000 (08:56 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Sat, 26 Nov 2016 00:56:18 +0000 (08:56 +0800)
commit7c5478a2035e4c0b6fcf3c597c745669ccb698e0
tree04deb7de10b6b63a491dd1686ecc06991d16d1aa
parentee24c8ad011272ffd1a6daaf3f0128ace8663c18
avformat/flvdec: move set bit_rate from parse AMF OBJECT to
 create_stream

before patch:
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x714 [SAR 1:1 DAR 640:357], 25 fps, 25 tbr, 1k tbn, 50 tbc

after patch:
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x714 [SAR 1:1 DAR 640:357], 2576 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/flvdec.c