avcodec/mpeg4_unpack_bframes_bsf: Use avpriv_find_start_code
authorAndreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Sat, 2 Feb 2019 19:34:11 +0000 (20:34 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 4 Feb 2019 18:59:21 +0000 (19:59 +0100)
commit1eb6bfbc1ff5d9f670ae51b4ca41d0053a6fd486
tree5e03f7a6768a9aa2f9a2d49e802f76402e9f0c13
parent87b00cac2a3bcb3273c983a0cc95671dffd85189
avcodec/mpeg4_unpack_bframes_bsf: Use avpriv_find_start_code

instead of an ad-hoc function to search for start codes in order to
remove code duplication and to improve performance.

Improved performance of finding startcodes from 52606 decicycles to
9543 decicycles based upon 262144 runs for a 1 Mb/s MPEG4 video.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg4_unpack_bframes_bsf.c