lavc: free the padded last frame during audio encoding properly