avcodec/h264_ps: Fix copying oversized pps&sps data
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 2 Oct 2015 19:02:08 +0000 (21:02 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Oct 2015 09:55:23 +0000 (11:55 +0200)
commit85c92789b60416bb89f7938fa236c558603559f6
treeb3d47af2020c411cdb254b2269a078f10e93b3ef
parent5fa5e73e81f191be0c4761bb4c517fdd39aff82e
avcodec/h264_ps: Fix copying oversized pps&sps data

Fixes: https://trac.ffmpeg.org/attachment/ticket/685/movie.264

In the available testcase the actual PPS only uses a few bits
while there are 7kbyte of apparently random data after it

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