Commit 1c104498 authored by Rémi Duraffort's avatar Rémi Duraffort

mp4: fix memory leak

parent 0d421fc8
......@@ -3131,7 +3131,10 @@ static int build_raw_avcC( uint8_t **p_extra, const uint8_t *CodecPrivateData,
}
}
if( sps_len == 0 )
{
free( avcC );
return 0;
}
uint8_t *pps = sps + sps_len + 3;
pps_len = cpd_len - sps_len - 4 * 2;
memcpy( pps, CodecPrivateData + sps_len + 4, pps_len );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment