h264_mp4toannexb: fix the pps offset when there are more than one sps in avcc
author赵宇龙 <zylthinking@gmail.com>
Fri, 9 Oct 2015 05:59:56 +0000 (13:59 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 9 Oct 2015 23:37:00 +0000 (01:37 +0200)
commitcd847839f33e58a2c2259595335ab483ef32667d
treeaf575d60f9cf1ea784c03c2ff66ca5344ad12f57
parent3d126ef188639e0b55bdbbb755eafced66f23352
h264_mp4toannexb: fix the pps offset when there are more than one sps in avcc

the pps offset is used to locate pps in the spspps_buf; however, the
current calc method is wrong because it is the offset of the original
avctx->extradata;
when there is only one sps in the avcc; the value is correct by
coincidence, however, it will fail in avcc with multi sps

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_mp4toannexb_bsf.c