avformat/mpegtsenc: use the correct deallocation functions