avformat/utils: never decrease has_b_frames in compute_pkt_fields()
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 3 Nov 2013 20:26:40 +0000 (21:26 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 17 Nov 2013 18:11:07 +0000 (19:11 +0100)
commit8c00647982590115b9dedb9cc42bec70c0531782
tree47e2db4c810f9adc7af9231e05af17e2dbc60393
parente40d01f45dfd34e8294a39b16a5c4f5d73a81fb6
avformat/utils: never decrease has_b_frames in compute_pkt_fields()

The intent of the original check was to increase has_b_frames when
it was incorrectly set to 0. Later codecs allowed larger values

Found-by: divVerent
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8b73a3f6f6598cb9249034fa020ddead3c943e2f)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c