mirror of
https://github.com/mpv-player/mpv
synced 2024-11-07 01:47:00 +01:00
Make sure demuxed ASF packet is properly padded after descrambling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27302 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e870f84bfb
commit
4a46fcaebc
@ -50,9 +50,12 @@ static inline int check_varlen(uint8_t *ptr, uint8_t *endptr, int len) {
|
||||
}
|
||||
|
||||
static void asf_descrambling(unsigned char **src,unsigned len, struct asf_priv* asf){
|
||||
unsigned char *dst=malloc(len);
|
||||
unsigned char *dst;
|
||||
unsigned char *s2=*src;
|
||||
unsigned i=0,x,y;
|
||||
if (len > UINT_MAX - FF_INPUT_BUFFER_PADDING_SIZE)
|
||||
return;
|
||||
dst = malloc(len + FF_INPUT_BUFFER_PADDING_SIZE);
|
||||
while(len>=asf->scrambling_h*asf->scrambling_w*asf->scrambling_b+i){
|
||||
// mp_msg(MSGT_DEMUX,MSGL_DBG4,"descrambling! (w=%d b=%d)\n",w,asf_scrambling_b);
|
||||
//i+=asf_scrambling_h*asf_scrambling_w;
|
||||
|
Loading…
Reference in New Issue
Block a user