remove unused header and support old LibAV API